ascii-chat 0.6.0
Real-time terminal-based video chat with ASCII art conversion
Loading...
Searching...
No Matches
query.h File Reference

Runtime variable query tool API for debug builds. More...

Go to the source code of this file.

Macros

Convenience Macros

These macros provide a convenient interface that compiles out completely in release builds. Use these instead of calling the functions directly.

#define QUERY_INIT(port)   query_init(port)
 Initialize query tool (debug builds only)
 
#define QUERY_SHUTDOWN()   query_shutdown()
 Shutdown query tool (debug builds only)
 
#define QUERY_ACTIVE()   query_is_active()
 Check if query tool is active (debug builds only)
 
#define QUERY_PORT()   query_get_port()
 Get query server port (debug builds only)
 

Functions

int query_init (int preferred_port)
 Initialize the query tool by spawning the controller process.
 
void query_shutdown (void)
 Shutdown the query tool and terminate the controller process.
 
bool query_is_active (void)
 Check if the query tool controller is currently active.
 
int query_get_port (void)
 Get the port number of the active query server.
 

Detailed Description

Runtime variable query tool API for debug builds.

Definition in file query.h.