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

ngfd-plugin

core-hooks.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_HOOKS_H
23#define N_CORE_HOOKS_H
24
25#include <glib.h>
26#include <ngf/request.h>
27#include <ngf/proplist.h>
28
29 typedef enum _NCoreHook
30{
36 N_CORE_HOOK_INIT_DONE = 1,
44 N_CORE_HOOK_NEW_REQUEST,
52 N_CORE_HOOK_TRANSFORM_PROPERTIES,
59 N_CORE_HOOK_FILTER_SINKS,
60 N_CORE_HOOK_LAST
61} NCoreHook;
62
63 typedef struct _NCoreHookNewRequestData
64{
65 NRequest *request;
66} NCoreHookNewRequestData;
67
68 typedef struct _NCoreHookTransformPropertiesData
69{
70 NRequest *request;
71} NCoreHookTransformPropertiesData;
72
73 typedef struct _NCoreHookFilterSinksData
74{
75 NRequest *request;
76 GList *sinks;
77} NCoreHookFilterSinksData;
78
85 const char* n_core_hook_to_string (NCoreHook hook);
86
87#endif /* N_CORE_HOOKS_H */
_NCoreHook
_NCoreHook
Definition core-hooks.h:30
N_CORE_HOOK_LAST
@ N_CORE_HOOK_LAST
Definition core-hooks.h:60
N_CORE_HOOK_NEW_REQUEST
@ N_CORE_HOOK_NEW_REQUEST
Executed:
Definition core-hooks.h:44
N_CORE_HOOK_INIT_DONE
@ N_CORE_HOOK_INIT_DONE
Executed after:
Definition core-hooks.h:36
N_CORE_HOOK_FILTER_SINKS
@ N_CORE_HOOK_FILTER_SINKS
Executed:
Definition core-hooks.h:59
N_CORE_HOOK_TRANSFORM_PROPERTIES
@ N_CORE_HOOK_TRANSFORM_PROPERTIES
Executed:
Definition core-hooks.h:52
NCoreHook
enum _NCoreHook NCoreHook
n_core_hook_to_string
const char * n_core_hook_to_string(NCoreHook hook)
Return name of hook as string.
NCoreHookNewRequestData
struct _NCoreHookNewRequestData NCoreHookNewRequestData
NCoreHookTransformPropertiesData
struct _NCoreHookTransformPropertiesData NCoreHookTransformPropertiesData
NCoreHookFilterSinksData
struct _NCoreHookFilterSinksData NCoreHookFilterSinksData
proplist.h
request.h
NRequest
struct _NRequest NRequest
Internal request structure.
Definition request.h:26
_NCoreHookFilterSinksData
Definition core-hooks.h:74
_NCoreHookFilterSinksData::request
NRequest * request
Definition core-hooks.h:75
_NCoreHookFilterSinksData::sinks
GList * sinks
Definition core-hooks.h:76
_NCoreHookNewRequestData
Definition core-hooks.h:64
_NCoreHookNewRequestData::request
NRequest * request
Definition core-hooks.h:65
_NCoreHookTransformPropertiesData
Definition core-hooks.h:69
_NCoreHookTransformPropertiesData::request
NRequest * request
Definition core-hooks.h:70