Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals

server_ppc_cmd.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (c) 2005, 2006 by KoanLogic s.r.l. <http://www.koanlogic.com>
00003  * All rights reserved.
00004  *
00005  * This file is part of KLone, and as such it is subject to the license stated
00006  * in the LICENSE file which you have received as part of this distribution.
00007  *
00008  * $Id: server_ppc_cmd.h,v 1.7 2006/01/09 12:38:38 tat Exp $
00009  */
00010 
00011 #ifndef _KLONE_PPC_COMMAND_H_
00012 #define _KLONE_PPC_COMMAND_H_
00013 #include <stdio.h>
00014 #include <klone/server.h>
00015 
00016 /* nop */
00017 int server_ppc_cmd_nop(server_t *s);
00018 int server_ppc_cb_nop(ppc_t *ppc, int fd, unsigned char cmd, char *data, 
00019     size_t size, void *vso);
00020 
00021 /* add log */
00022 int syslog_to_klog(int level);
00023 int server_ppc_cmd_log_add(server_t *s, int level, const char *str);
00024 int server_ppc_cb_log_add(ppc_t *ppc, int fd, unsigned char cmd, char *data, 
00025     size_t size, void *vso);
00026 
00027 /* fork child */
00028 int server_ppc_cmd_fork_child(server_t *s, backend_t *be);
00029 int server_ppc_cb_fork_child(ppc_t *ppc, int fd, unsigned char cmd, char *data,
00030     size_t size, void *vso);
00031 
00032 /* get log lines */
00033 int server_ppc_cmd_log_get(server_t *s, size_t i, char *line);
00034 int server_ppc_cb_log_get(ppc_t *ppc, int fd, unsigned char cmd, 
00035     char *data, size_t size, void *vso);
00036 
00037 #endif

←Products
© 2005-2006 - KoanLogic S.r.l. - All rights reserved