2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
20#include "../meta/instances/gimbal_object.h"
21#include "../meta/signals/gimbal_signal.h"
22#include "../utils/gimbal_version.h"
23#include "../strings/gimbal_string_list.h"
26
27
28
35#define GBL_SELF_TYPE GblApp
42
43
44
45
46
47
48
51 GBL_RESULT (*pFnNotify)(GblObject* pReceiver, GblEvent* pEvent);
55
56
57
58
59
60
61
62
80 (quitting, (GBL_INSTANCE_TYPE, pReceiver))
86
87
88
105
106
107
108
void GblApp_addLibraryPath(const char *pPath)
Adds pPath to the list of search paths for dynamic libraries and modules.
const GblStringList * GblApp_libraryPaths(void)
Returns a GblStringList containing the list of search paths for dynamic libraries and modules.
GblApp * GblApp_instance(void)
Returns a pointer to the current application instance (or NULL if not instantiated)
GblType GblApp_type(void)
Returns the GblType UUID associated with the GblApp type.
GblBool GblApp_startingUp(void)
Returns GBL_TRUE if the GblApp instance is being initialized or constructed, GBL_FALSE otherwise.
GblBool GblApp_closingDown(void)
Returns GBL_TRUE if the GblApp instance is being deinitialized or destructed, GBL_FALSE otherwise.
#define GBL_CLASS_CAST(cType, klass)
#define GBL_FORWARD_DECLARE_STRUCT(S)
#define GBL_TYPEID(instanceStruct)
#define GBL_INSTANCE_DERIVE(derivedInstance, baseInstance)
#define GBL_CLASS_DERIVE(...)
#define GBL_CLASSOF(cType, self)
#define GBL_CAST(cType, self)
#define GBL_STRING_TYPE
Builtin ID for string GblVariant type.
#define GBL_UINT32_TYPE
Builtin ID for uint32_t GblVariant type.
#define GBL_PROPERTIES(object,...)
Declares a list of properties for the given object/instance structure.
#define GBL_SIGNALS(instanceStruct,...)
uint8_t GblBool
Basic boolean type, standardized to sizeof(char)
uint16_t GblRefCount
Type able to hold a reference counter across the codebase.
GblRingList GblStringList
List of strings with array-like API.
const char GblStringRef
Reference-counted, const char*-compatible string type.
uint32_t GblVersion
32-bit unsigned integer representing a packed version in the form (MAJOR.MINOR.PATCH)
Top-level per-program application instance.
GBL_RESULT GblApp_quit(GblApp *pSelf, int retVal)
Terminates an application gracefully, emitting the "quitting" signal and doing any cleanup.
const GblStringList * GblApp_argList(const GblApp *pSelf)
Returns a GblStringList containing all command-line arguments as individual strings.
GBL_RESULT GblApp_exit(GblApp *pSelf, int retVal)
Terminates an application abruptly, without signalling "quitting".
GblApp * GblApp_create(int argc, const char **ppArgv)
Creates a GblApp instance with the given command-line arguments, returning a pointer to it.
GBL_RESULT GblApp_exec(GblApp *pSelf)
Top-level execution function for a GblApp–blocks until execution is complete, returning a result code...
GblStringRef * GblApp_domain(const GblApp *pSelf)
Returns the domain string associated with the GblApp instance.
GblRefCount GblApp_unref(GblApp *pSelf)
Decrements the refcount of a GblApp instance, destroying it if it is the last one.
GblVersion GblApp_version(const GblApp *pSelf)
Returns the version associated with the GblApp instance.
GblStringRef * GblApp_organization(const GblApp *pSelf)
Returns the organization string associated with the GblApp instance.