ngfd-plugin
core.h File Reference
#include <glib.h>
#include <ngf/core-hooks.h>
#include <ngf/hook.h>
#include <ngf/sinkinterface.h>
#include <ngf/context.h>

Go to the source code of this file.

Typedefs

typedef struct _NCore NCore
 Internal core structure.
 

Functions

NContextn_core_get_context (NCore *core)
 Get context structure associated with core.
 
GList * n_core_get_requests (NCore *core)
 Get list of active requests.
 
NSinkInterface ** n_core_get_sinks (NCore *core)
 Get list of registered sinks.
 
GList * n_core_get_events (NCore *core)
 Get list of known events.
 
int n_core_connect (NCore *core, NCoreHook hook, int priority, NHookCallback callback, void *userdata)
 Connect callback function to hook.
 
void n_core_disconnect (NCore *core, NCoreHook hook, NHookCallback callback, void *userdata)
 Disconnect callback function from hook.
 

Typedef Documentation

◆ NCore

typedef struct _NCore NCore

Internal core structure.

Function Documentation

◆ n_core_connect()

int n_core_connect ( NCore * core,
NCoreHook hook,
int priority,
NHookCallback callback,
void * userdata )

Connect callback function to hook.

Parameters
coreCore.
hookHook to connect callback to.
priorityPriority of callback function.
callbackCallback function.
userdataUserdata.
Returns
TRUE if successful.
See also
_NCoreHook
_NHookPriority
NHookCallback

◆ n_core_disconnect()

void n_core_disconnect ( NCore * core,
NCoreHook hook,
NHookCallback callback,
void * userdata )

Disconnect callback function from hook.

Parameters
coreCore.
hookHook to connect callback to.
callbackCallback function.
userdataUserdata.
See also
_NCoreHook
NHookCallback

◆ n_core_get_context()

NContext * n_core_get_context ( NCore * core)

Get context structure associated with core.

Parameters
coreCore.
Returns
NContext structure.

◆ n_core_get_events()

GList * n_core_get_events ( NCore * core)

Get list of known events.

Parameters
coreCore.
Returns
GList of events.

◆ n_core_get_requests()

GList * n_core_get_requests ( NCore * core)

Get list of active requests.

Parameters
coreCore.
Returns
Requests in GList type.

◆ n_core_get_sinks()

NSinkInterface ** n_core_get_sinks ( NCore * core)

Get list of registered sinks.

Parameters
coreCore.
Returns
Array of NSinkInterfaces