QuickIO  0.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Classes | Macros | Typedefs | Functions
apps.h File Reference

Handles applications running inside the server. More...

#include "quickio.h"

Go to the source code of this file.

Classes

struct  app
 What we know about an app. More...
 

Macros

#define QIO_MAGIC_NUM   0xfc63e18a
 Used to verify that modules are QIO apps.
 
#define QUICKIO_APP(init, exit)
 For an app: sets up all the necessary callbacks. More...
 
#define QUICKIO_APP_TEST(test)
 For an app: sets up all the necessary callbacks. More...
 

Typedefs

typedef gboolean(* qio_app_cb )()
 Callback type expected from the apps.
 

Functions

void apps_init ()
 Listens for new apps in configuration and runs them as they're discovered.
 
void apps_test ()
 Runs app->test() on all the apps.
 

Detailed Description

Handles applications running inside the server.

Author
Andrew Stone andre.nosp@m.w@cl.nosp@m.ovar..nosp@m.com

Macro Definition Documentation

#define QUICKIO_APP (   init,
  exit 
)
Value:
guint __qio_is_app = QIO_MAGIC_NUM; \
gboolean __qio_app_init() \
{ \
return init(); } \
gboolean __qio_app_exit() \
{ \
return exit(); }
#define QIO_MAGIC_NUM
Used to verify that modules are QIO apps.
Definition: apps.h:18

For an app: sets up all the necessary callbacks.

#define QUICKIO_APP_TEST (   test)
Value:
gboolean __qio_app_test() \
{ \
return test(); }

For an app: sets up all the necessary callbacks.