ngfd-plugin: /build/ngfd/src/ngfd-1.4.1/src/include/ngf/core.h Source File

ngfd-plugin

core.h
Go to the documentation of this file.
1/*
2 * ngfd - Non-graphic feedback daemon
3 *
4 * Copyright (C) 2010 Nokia Corporation.
5 * Contact: Xun Chen <xun.chen@nokia.com>
6 *
7 * This work is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This work is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this work; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22#ifndef N_CORE_H
23#define N_CORE_H
24
26 typedef struct _NCore NCore;
27
28#include <glib.h>
29
30#include <ngf/core-hooks.h>
31#include <ngf/hook.h>
32#include <ngf/sinkinterface.h>
33#include <ngf/context.h>
34
41 NContext* n_core_get_context (NCore *core);
42
49GList* n_core_get_requests (NCore *core);
50
57 NSinkInterface** n_core_get_sinks (NCore *core);
58
65GList* n_core_get_events (NCore *core);
66
80 int n_core_connect (NCore *core, NCoreHook hook, int priority, NHookCallback callback, void *userdata);
81
92 void n_core_disconnect (NCore *core, NCoreHook hook, NHookCallback callback, void *userdata);
93
94#endif /* N_CORE_H */
context.h
NContext
struct _NContext NContext
Internal context structure.
Definition context.h:26
core-hooks.h
NCoreHook
enum _NCoreHook NCoreHook
n_core_connect
int n_core_connect(NCore *core, NCoreHook hook, int priority, NHookCallback callback, void *userdata)
Connect callback function to hook.
n_core_get_context
NContext * n_core_get_context(NCore *core)
Get context structure associated with core.
NCore
struct _NCore NCore
Internal core structure.
Definition core.h:26
n_core_disconnect
void n_core_disconnect(NCore *core, NCoreHook hook, NHookCallback callback, void *userdata)
Disconnect callback function from hook.
n_core_get_events
GList * n_core_get_events(NCore *core)
Get list of known events.
n_core_get_sinks
NSinkInterface ** n_core_get_sinks(NCore *core)
Get list of registered sinks.
n_core_get_requests
GList * n_core_get_requests(NCore *core)
Get list of active requests.
hook.h
NHookCallback
void(* NHookCallback)(NHook *hook, void *data, void *userdata)
Hook callback function.
Definition hook.h:47
sinkinterface.h
NSinkInterface
struct _NSinkInterface NSinkInterface
Internal sinkinterface structure.
Definition sinkinterface.h:26