File: test.c

package info (click to toggle)
xneur 0.9.9-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,636 kB
  • ctags: 980
  • sloc: sh: 10,763; ansic: 7,875; makefile: 391; sed: 31
file content (112 lines) | stat: -rw-r--r-- 2,332 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 *  Copyright (C) 2006-2010 XNeur Team
 *
 */

#ifdef HAVE_CONFIG_H
#  include "config.h"
#endif

#ifdef WITH_PLUGINS

#include <X11/keysym.h>
#include <X11/XKBlib.h>

#include <stdio.h>

#include "xnconfig.h"

extern struct _xneur_config *xconfig;

int on_init(void)
{
	printf("[PLG] Plugin for test receive initialisation\n");
	return (0);
}

int on_xneur_start(void)
{
	printf("[PLG] Plugin receive xneur start\n");
	return (0);
}

int on_xneur_reload(void)
{
	printf("[PLG] Plugin receive xneur stop\n");
	return (0);
}

int on_xneur_stop(void)
{
	printf("[PLG] Plugin receive xneur stop\n");
	return (0);
}

int on_key_press(KeySym key, int modifier_mask)
{
	printf("[PLG] Plugin receive KeyPress '%s' with mask %d\n", XKeysymToString(key), modifier_mask);
	return (0);
}

int on_key_release(KeySym key, int modifier_mask)
{
	printf("[PLG] Plugin receive KeyRelease '%s' with mask %d\n", XKeysymToString(key), modifier_mask);
	return (0);
}

int on_hotkey_action(enum _hotkey_action ha)
{
	printf("[PLG] Plugin receive Hotkey Action '%d'\n", ha);
	return (0);
}

int on_change_action(enum _change_action ca)
{
	printf("[PLG] Plugin receive Change Action '%d'\n", ca);
	return (0);
}

int on_plugin_reload(void)
{
	printf("[PLG] Plugin reload\n");
	return (0);
}

int on_plugin_configure(void)
{
	printf("[PLG] Plugin configure\n");
	return (0);
}

int on_plugin_about(void)
{
	printf("[PLG] Plugin about\n");
	return (0);
}

char *on_plugin_info(void)
{
	return ("Test plugin");
}

int on_fini(void)
{
	printf("[PLG] Plugin receive finalisation\n");
	return (0);
}

#endif /* WITH_PLUGINS */