Appl new code style on whole code base

Use a similar code style to bemanitools though reduce indentation
to 2 spaces. Also some other tweaks to be more similar to google
style.
This commit is contained in:
icex2
2021-03-19 15:52:34 +01:00
parent b493b4983a
commit eafb2909d1
322 changed files with 30291 additions and 25084 deletions
+21 -17
View File
@@ -1,6 +1,7 @@
/**
* Pumptools hooks into the X11 event dispatch loop to grab different events and exposes
* keyboard input events. This allows external modules to react to these inputs.
* Pumptools hooks into the X11 event dispatch loop to grab different events and
* exposes keyboard input events. This allows external modules to react to these
* inputs.
*/
#ifndef PTAPI_IO_X11_INPUT_HOOK_H
#define PTAPI_IO_X11_INPUT_HOOK_H
@@ -12,28 +13,31 @@
* Set functions you do not use to NULL.
*/
struct ptapi_io_x11_input_hook_handler {
/**
* Dispatch the key press event
*
* @param key Key pressed
*/
void (*dispatch_key_press)(KeySym key);
/**
* Dispatch the key press event
*
* @param key Key pressed
*/
void (*dispatch_key_press)(KeySym key);
/**
* Dispatch the key release event
*
* @param key Key released
*/
void (*dispatch_key_release)(KeySym key);
/**
* Dispatch the key release event
*
* @param key Key released
*/
void (*dispatch_key_release)(KeySym key);
};
typedef const struct ptapi_io_x11_input_hook_handler* (*ptapi_io_x11_input_handler_hook_t)(void);
typedef const struct ptapi_io_x11_input_hook_handler *(
*ptapi_io_x11_input_handler_hook_t)(void);
/**
* Get an input hook handler to receive keyboard inputs from the X11 event loop.
*
* @return Either a valid handler structure with dispatch functions or NULL if unused.
* @return Either a valid handler structure with dispatch functions or NULL if
* unused.
*/
const struct ptapi_io_x11_input_hook_handler* ptapi_io_x11_input_handler_hook(void);
const struct ptapi_io_x11_input_hook_handler *
ptapi_io_x11_input_handler_hook(void);
#endif