gkrellm/server/win32-plugin.c

75 lines
3.0 KiB
C
Raw Normal View History

2008-02-01 21:36:15 +03:00
/* GKrellM Windows Portion
| Copyright (C) 2006-2010 Stefan Gehn
2008-02-01 21:36:15 +03:00
|
2010-06-13 21:54:28 +04:00
| Authors: Stefan Gehn stefan+gkrellm@srcbox.net
2008-02-01 21:36:15 +03:00
| Latest versions might be found at: http://gkrellm.net
|
|
| GKrellM 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 3 of the License, or
| (at your option) any later version.
|
| GKrellM 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, see http://www.gnu.org/licenses/
*/
#include "win32-plugin.h"
win32_plugin_callbacks gkrellmd_callbacks;
void win32_init_callbacks(void)
{
/* gkrellmd serve data functions used by builtins and plugins.
*/
gkrellmd_callbacks.gkrellmd_plugin_serve_setup = gkrellmd_plugin_serve_setup;
gkrellmd_callbacks.gkrellmd_need_serve = gkrellmd_need_serve;
gkrellmd_callbacks.gkrellmd_set_serve_name = gkrellmd_set_serve_name;
gkrellmd_callbacks.gkrellmd_serve_data = gkrellmd_serve_data;
gkrellmd_callbacks.gkrellmd_add_serveflag_done = gkrellmd_add_serveflag_done;
gkrellmd_callbacks.gkrellmd_check_client_version = gkrellmd_check_client_version;
gkrellmd_callbacks.gkrellmd_config_getline = gkrellmd_config_getline;
2008-02-01 21:36:15 +03:00
gkrellmd_callbacks.gkrellmd_client_input_connect = gkrellmd_client_input_connect;
2008-02-01 21:36:15 +03:00
/* Small set of useful functions duplicated from src/utils.c.
| These really should just be in the gkrellm_ namespace for sysdep code
| common to gkrellm and gkrellmd, but for convenience, offer them in
| both gkrellm_ and gkrellmd_ namespaces.
*/
gkrellmd_callbacks.gkrellmd_free_glist_and_data = gkrellmd_free_glist_and_data;
gkrellmd_callbacks.gkrellmd_getline_from_gstring = gkrellmd_getline_from_gstring;
gkrellmd_callbacks.gkrellmd_dup_token = gkrellmd_dup_token;
gkrellmd_callbacks.gkrellmd_dup_string = gkrellmd_dup_string;
2008-02-01 21:36:15 +03:00
gkrellmd_callbacks.gkrellm_free_glist_and_data = gkrellm_free_glist_and_data;
gkrellmd_callbacks.gkrellm_getline_from_gstring = gkrellm_getline_from_gstring;
gkrellmd_callbacks.gkrellm_dup_token = gkrellm_dup_token;
gkrellmd_callbacks.gkrellm_dup_string = gkrellm_dup_string;
2008-02-01 21:36:15 +03:00
/* Plugins should use above data serve functions instead of this.
*/
gkrellmd_callbacks.gkrellmd_send_to_client = gkrellmd_send_to_client;
2008-02-01 21:36:15 +03:00
/* Misc
*/
gkrellmd_callbacks.gkrellmd_add_mailbox = gkrellmd_add_mailbox;
gkrellmd_callbacks.gkrellmd_ticks = gkrellmd_ticks;
gkrellmd_callbacks.gkrellmd_get_timer_ticks = gkrellmd_get_timer_ticks;
//---------------------------------------------------------------------------
// new since 2.3.2
gkrellmd_callbacks.gkrellm_debugv = gkrellm_debugv;
2008-02-01 21:36:15 +03:00
}