mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[client] allow building with -Wstrict-prototypes
This is not yet turned on because cimgui does not build with it enabled.
This commit is contained in:
parent
7387a4a8e1
commit
91d6e3a82a
@ -187,7 +187,7 @@ err:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void pulseaudio_sink_close_nl()
|
static void pulseaudio_sink_close_nl(void)
|
||||||
{
|
{
|
||||||
if (!pa.sink)
|
if (!pa.sink)
|
||||||
return;
|
return;
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
bool x11CBEventThread(const XEvent xe);
|
bool x11CBEventThread(const XEvent xe);
|
||||||
|
|
||||||
bool x11CBInit();
|
bool x11CBInit(void);
|
||||||
void x11CBNotice(LG_ClipboardData type);
|
void x11CBNotice(LG_ClipboardData type);
|
||||||
void x11CBRelease(void);
|
void x11CBRelease(void);
|
||||||
void x11CBRequest(LG_ClipboardData type);
|
void x11CBRequest(LG_ClipboardData type);
|
||||||
|
@ -123,13 +123,13 @@ struct LG_DisplayServerOps
|
|||||||
bool (*init)(const LG_DSInitParams params);
|
bool (*init)(const LG_DSInitParams params);
|
||||||
|
|
||||||
/* called at startup after window creation, renderer and SPICE is ready */
|
/* called at startup after window creation, renderer and SPICE is ready */
|
||||||
void (*startup)();
|
void (*startup)(void);
|
||||||
|
|
||||||
/* called just before final window destruction, before final free */
|
/* called just before final window destruction, before final free */
|
||||||
void (*shutdown)();
|
void (*shutdown)(void);
|
||||||
|
|
||||||
/* final free */
|
/* final free */
|
||||||
void (*free)();
|
void (*free)(void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* return a system specific property, returns false if unsupported or failure
|
* return a system specific property, returns false if unsupported or failure
|
||||||
@ -170,14 +170,14 @@ struct LG_DisplayServerOps
|
|||||||
/* dm specific cursor implementations */
|
/* dm specific cursor implementations */
|
||||||
void (*guestPointerUpdated)(double x, double y, double localX, double localY);
|
void (*guestPointerUpdated)(double x, double y, double localX, double localY);
|
||||||
void (*setPointer)(LG_DSPointer pointer);
|
void (*setPointer)(LG_DSPointer pointer);
|
||||||
void (*grabKeyboard)();
|
void (*grabKeyboard)(void);
|
||||||
void (*ungrabKeyboard)();
|
void (*ungrabKeyboard)(void);
|
||||||
/* (un)grabPointer is used to toggle cursor tracking/confine in normal mode */
|
/* (un)grabPointer is used to toggle cursor tracking/confine in normal mode */
|
||||||
void (*grabPointer)();
|
void (*grabPointer)(void);
|
||||||
void (*ungrabPointer)();
|
void (*ungrabPointer)(void);
|
||||||
/* (un)capturePointer is used do toggle special cursor tracking in capture mode */
|
/* (un)capturePointer is used do toggle special cursor tracking in capture mode */
|
||||||
void (*capturePointer)();
|
void (*capturePointer)(void);
|
||||||
void (*uncapturePointer)();
|
void (*uncapturePointer)(void);
|
||||||
|
|
||||||
/* exiting = true if the warp is to leave the window */
|
/* exiting = true if the warp is to leave the window */
|
||||||
void (*warpPointer)(int x, int y, bool exiting);
|
void (*warpPointer)(int x, int y, bool exiting);
|
||||||
@ -185,17 +185,17 @@ struct LG_DisplayServerOps
|
|||||||
/* called when the client needs to realign the pointer. This should simply
|
/* called when the client needs to realign the pointer. This should simply
|
||||||
* call the appropriate app_handleMouse* method for the platform with zero
|
* call the appropriate app_handleMouse* method for the platform with zero
|
||||||
* deltas */
|
* deltas */
|
||||||
void (*realignPointer)();
|
void (*realignPointer)(void);
|
||||||
|
|
||||||
/* returns true if the position specified is actually valid */
|
/* returns true if the position specified is actually valid */
|
||||||
bool (*isValidPointerPos)(int x, int y);
|
bool (*isValidPointerPos)(int x, int y);
|
||||||
|
|
||||||
/* called to disable/enable the screensaver */
|
/* called to disable/enable the screensaver */
|
||||||
void (*inhibitIdle)();
|
void (*inhibitIdle)(void);
|
||||||
void (*uninhibitIdle)();
|
void (*uninhibitIdle)(void);
|
||||||
|
|
||||||
/* called to request activation */
|
/* called to request activation */
|
||||||
void (*requestActivation)();
|
void (*requestActivation)(void);
|
||||||
|
|
||||||
/* wait for the specified time without blocking UI processing/event loops */
|
/* wait for the specified time without blocking UI processing/event loops */
|
||||||
void (*wait)(unsigned int time);
|
void (*wait)(unsigned int time);
|
||||||
|
@ -46,7 +46,7 @@ static bool optScancodeValidate(struct Option * opt, const char ** error);
|
|||||||
static char * optScancodeToString(struct Option * opt);
|
static char * optScancodeToString(struct Option * opt);
|
||||||
static bool optRotateValidate (struct Option * opt, const char ** error);
|
static bool optRotateValidate (struct Option * opt, const char ** error);
|
||||||
|
|
||||||
static void doLicense();
|
static void doLicense(void);
|
||||||
|
|
||||||
static struct Option options[] =
|
static struct Option options[] =
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,6 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
void config_init();
|
void config_init(void);
|
||||||
bool config_load(int argc, char * argv[]);
|
bool config_load(int argc, char * argv[]);
|
||||||
void config_free();
|
void config_free(void);
|
||||||
|
@ -981,7 +981,7 @@ static bool tryRenderer(const int index, const LG_RendererParams lgrParams,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void reportBadVersion()
|
static void reportBadVersion(void)
|
||||||
{
|
{
|
||||||
DEBUG_BREAK();
|
DEBUG_BREAK();
|
||||||
DEBUG_ERROR("The host application is not compatible with this client");
|
DEBUG_ERROR("The host application is not compatible with this client");
|
||||||
|
@ -44,7 +44,7 @@ void overlayAlert_show(LG_MsgAlert type, const char * fmt, va_list args);
|
|||||||
|
|
||||||
GraphHandle overlayGraph_register(const char * name, RingBuffer buffer,
|
GraphHandle overlayGraph_register(const char * name, RingBuffer buffer,
|
||||||
float min, float max, GraphFormatFn formatFn);
|
float min, float max, GraphFormatFn formatFn);
|
||||||
void overlayGraph_unregister();
|
void overlayGraph_unregister(GraphHandle handle);
|
||||||
void overlayGraph_iterate(void (*callback)(GraphHandle handle, const char * name,
|
void overlayGraph_iterate(void (*callback)(GraphHandle handle, const char * name,
|
||||||
bool * enabled, void * udata), void * udata);
|
bool * enabled, void * udata), void * udata);
|
||||||
void overlayGraph_invalidate(GraphHandle handle);
|
void overlayGraph_invalidate(GraphHandle handle);
|
||||||
|
Loading…
Reference in New Issue
Block a user