server_ppc_cmd.h

00001 /*
00002  * Copyright (c) 2005-2012 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.1 2007/11/09 22:06:26 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 /* access_log */
00038 int server_ppc_cmd_access_log(server_t *s, int bid, int vhostid,
00039         const char *str);
00040 int server_ppc_cb_access_log(ppc_t *ppc, int fd, unsigned char cmd, char *data, 
00041     size_t size, void *vso);
00042 
00043 #endif

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