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
26typedef 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
42
50
58
65GList* n_core_get_events (NCore *core);
66
80int n_core_connect (NCore *core, NCoreHook hook, int priority, NHookCallback callback, void *userdata);
81
92void n_core_disconnect (NCore *core, NCoreHook hook, NHookCallback callback, void *userdata);
93
94#endif /* N_CORE_H */
struct _NContext NContext
Internal context structure.
Definition context.h:26
enum _NCoreHook NCoreHook
int n_core_connect(NCore *core, NCoreHook hook, int priority, NHookCallback callback, void *userdata)
Connect callback function to hook.
NContext * n_core_get_context(NCore *core)
Get context structure associated with core.
struct _NCore NCore
Internal core structure.
Definition core.h:26
void n_core_disconnect(NCore *core, NCoreHook hook, NHookCallback callback, void *userdata)
Disconnect callback function from hook.
GList * n_core_get_events(NCore *core)
Get list of known events.
NSinkInterface ** n_core_get_sinks(NCore *core)
Get list of registered sinks.
GList * n_core_get_requests(NCore *core)
Get list of active requests.
void(* NHookCallback)(NHook *hook, void *data, void *userdata)
Hook callback function.
Definition hook.h:47
struct _NSinkInterface NSinkInterface
Internal sinkinterface structure.
Definition sinkinterface.h:26