Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
lifecycle.cpp File Reference

Implementation of installable callbacks for lifecycle events. More...

Go to the source code of this file.

Description

Implementation of installable callbacks for lifecycle events.

Definition in file lifecycle.cpp.

#include "lib/error.hpp"
#include "include/lifecycle.h"
#include "lib/lifecycleregistry.hpp"
#include "lib/util.hpp"

Namespaces

namespace  lumiera
 Lumiera public interface.
 

Typedefs

using Callback = LifecycleRegistry::Hook
 

Functions

CStr ON_BASIC_INIT ("ON_BASIC_INIT")
 
CStr ON_GLOBAL_INIT ("ON_GLOBAL_INIT")
 
CStr ON_GLOBAL_SHUTDOWN ("ON_GLOBAL_SHUTDOWN")
 
CStr ON_EMERGENCY ("ON_EMERGENCY")
 
void lumiera_LifecycleHook_add (const char *eventLabel, void callbackFun(void))
 
void lumiera_Lifecycle_trigger (const char *eventLabel)
 

Variables

const char * lumiera_ON_BASIC_INIT = lumiera::ON_BASIC_INIT
 
const char * lumiera_ON_GLOBAL_INIT = lumiera::ON_GLOBAL_INIT
 
const char * lumiera_ON_GLOBAL_SHUTDOWN = lumiera::ON_GLOBAL_SHUTDOWN
 
const char * lumiera_ON_EMERGENCY = lumiera::ON_EMERGENCY
 

Function Documentation

◆ lumiera_LifecycleHook_add()

void lumiera_LifecycleHook_add ( const char *  eventLabel,
void   callbackFunvoid 
)

Definition at line 101 of file lifecycle.cpp.

◆ lumiera_Lifecycle_trigger()

void lumiera_Lifecycle_trigger ( const char *  eventLabel)

Definition at line 108 of file lifecycle.cpp.

References LifecycleRegistry::execute(), and LifecycleRegistry::instance().

+ Here is the call graph for this function:

Variable Documentation

◆ lumiera_ON_BASIC_INIT

const char* lumiera_ON_BASIC_INIT = lumiera::ON_BASIC_INIT

Definition at line 92 of file lifecycle.cpp.

◆ lumiera_ON_GLOBAL_INIT

const char* lumiera_ON_GLOBAL_INIT = lumiera::ON_GLOBAL_INIT

Definition at line 93 of file lifecycle.cpp.

◆ lumiera_ON_GLOBAL_SHUTDOWN

const char* lumiera_ON_GLOBAL_SHUTDOWN = lumiera::ON_GLOBAL_SHUTDOWN

Definition at line 94 of file lifecycle.cpp.

◆ lumiera_ON_EMERGENCY

const char* lumiera_ON_EMERGENCY = lumiera::ON_EMERGENCY

Definition at line 96 of file lifecycle.cpp.