parser.h

Go to the documentation of this file.
00001 
00015 #ifndef PARSER_DEAMON_H_
00016 #define PARSER_DEAMON_H_
00017 
00018 
00019 /* parser is one for userspace and one for kernel 
00020  * it is ugly insert file with path, but in this case it's simpiest way. 
00021  */
00022 #ifdef __KERNEL__
00023         #include "../kernel_module/fsc_debug.h"
00024 #else
00025         #include "../deamon/fsd_debug.h"
00026 #endif
00027 
00028 #include "../deamon/fsd_defines.h"      
00029 
00030 
00035 typedef struct {
00037         int data_len;                           
00039         char version[MAX_VERSION_LENGTH + 1];   
00041         char command[MAX_COMMAND_LENGTH + 1];   
00043         char param[MAX_PARAM_LENGTH + 1];       
00045         char data[MAX_BLOCK_LENGTH + 1];
00047         int command_nr;                                                 
00048 } struct_command;
00049 
00050 
00051 /* function for parsing commands */
00052 int parse_message(char *message, int message_len, struct_command * command);
00053 
00054 
00055 #endif
00056 
00057 

Generated on Mon May 28 13:33:08 2007 for MYSQLFS by  doxygen 1.5.0