Fixed shadowing and type errors

This commit is contained in:
Armin Novak
2021-07-29 10:07:04 +02:00
committed by akallabeth
parent 297f965052
commit f515bd4560
31 changed files with 229 additions and 205 deletions

View File

@@ -26,7 +26,6 @@
#include <stdbool.h>
#include <uwac/uwac.h>
/** @brief */
struct uwac_touch_point
{
uint32_t id;
@@ -37,24 +36,8 @@ typedef struct uwac_touch_point UwacTouchPoint;
struct uwac_touch_automata;
typedef struct uwac_touch_automata UwacTouchAutomata;
/**
*
* @param automata
*/
UWAC_API void UwacTouchAutomataInit(UwacTouchAutomata* automata);
/**
*
* @param automata
*/
UWAC_API void UwacTouchAutomataReset(UwacTouchAutomata* automata);
/**
*
* @param automata
* @param event
* @return
*/
UWAC_API bool UwacTouchAutomataInjectEvent(UwacTouchAutomata* automata, UwacEvent* event);
#endif /* UWAC_TOOLS_H_ */

View File

@@ -294,7 +294,6 @@ struct uwac_output_geometry_event
};
typedef struct uwac_output_geometry_event UwacOutputGeometryEvent;
/** @brief */
union uwac_event {
int type;
UwacOutputNewEvent output_new;
@@ -477,10 +476,10 @@ extern "C"
* Sets the region that should be considered opaque to the compositor.
*
* @param window the UwacWindow
* @param x
* @param y
* @param width
* @param height
* @param x The horizontal coordinate in pixels
* @param y The vertical coordinate in pixels
* @param width The width of the region
* @param height The height of the region
* @return UWAC_SUCCESS on success, an error otherwise
*/
UWAC_API UwacReturnCode UwacWindowSetOpaqueRegion(UwacWindow* window, uint32_t x, uint32_t y,
@@ -490,11 +489,11 @@ extern "C"
* Sets the region of the window that can trigger input events
*
* @param window the UwacWindow
* @param x
* @param y
* @param width
* @param height
* @return
* @param x The horizontal coordinate in pixels
* @param y The vertical coordinate in pixels
* @param width The width of the region
* @param height The height of the region
* @return UWAC_SUCCESS on success, an error otherwise
*/
UWAC_API UwacReturnCode UwacWindowSetInputRegion(UwacWindow* window, uint32_t x, uint32_t y,
uint32_t width, uint32_t height);
@@ -571,11 +570,11 @@ extern "C"
*/
UWAC_API void UwacWindowSetTitle(UwacWindow* window, const char* name);
/**
/** Dispatch the display
*
* @param display
* @param timeout
* @return
* @param display The display to dispatch
* @param timeout The maximum time to wait in milliseconds (-1 == infinite).
* @return 1 for success, 0 if display not running, -1 on failure
*/
UWAC_API int UwacDisplayDispatch(UwacDisplay* display, int timeout);