kilt.h

00001 #ifndef _KLONE_KILT_H_
00002 #define _KLONE_KILT_H_
00003 #include <stdlib.h>
00004 #include <klone/kilt_urls.h>
00005 #include <klone/dypage.h>
00006 
00007 #ifdef __cplusplus
00008 extern "C" {
00009 #endif 
00010 
00011 /* url regex to function mapping */
00012 typedef struct kilt_url_s
00013 {
00014     const char *pattern;    /* url pattern */
00015     dypage_fun_t fun;
00016     dypage_param_t params[DYPAGE_MAX_PARAMS];
00017 } kilt_url_t;
00018 
00019 /* run the .kl1 script whose name is in "script" param */
00020 void kilt_run_script(dypage_args_t *dp) ;
00021 
00022 /* function that displays passed-in arguments */
00023 void kilt_show_params(dypage_args_t *dp);
00024 
00025 /* must be set by the user (helper macros in kilt_urls.h) */
00026 extern kilt_url_t *kilt_urls;
00027 extern size_t kilt_nurls;
00028 
00029 #ifdef __cplusplus
00030 }
00031 #endif 
00032 
00033 #endif

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