TSP: The Transport Sample Protocol



Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

page_config.h

00001 #ifndef _PAGE_CONFIG_H_
00002 #define _PAGE_CONFIG_H_
00003 
00004 typedef struct PGC_instance_t PGC_instance_t;
00005 typedef PGC_instance_t* PGC_handle_t;
00006      
00007 
00008 #define PGC_TRUE 1
00009 #define PGC_FALSE 0
00010 
00011 struct PGC_global_t
00012 {
00013   float display_frequency;
00014 };
00015 
00016 typedef struct PGC_global_t PGC_global_t;
00017 
00018 struct PGC_page_t
00019 {
00020   char* title;
00021   int x;
00022   int y;
00023   int width;
00024   int height;
00025   int rows;
00026   int is_visible;
00027   int no_border;
00028 };
00029 
00030 typedef struct PGC_page_t PGC_page_t;
00031 
00032 enum PGC_var_type_t {PGC_DOUBLE = 0, PGC_TITLE, PGC_HEXA, PGC_BIN, PGC_STRING };
00033 typedef enum PGC_var_type_t PGC_var_type_t;
00034 
00035 enum PGC_widget_type_t {PGC_WIDGET_VIEW = 0, PGC_WIDGET_DRAW };
00036 typedef enum PGC_widget_type_t PGC_widget_type_t;
00037 
00038 
00039 enum PGC_error_t {PGC_STATUS_FATAL, PGC_STATUS_NO_ITEM, PGC_STATUS_OK };
00040 typedef enum PGC_error_t PGC_error_t;
00041 
00042 
00043 struct PGC_var_t
00044 {
00045   char* name;
00046   char* legend;
00047   int period;
00048   float duration;  
00049   PGC_var_type_t type;
00050   PGC_widget_type_t widget_type; 
00051 };  
00052 typedef struct PGC_var_t PGC_var_t;
00053 
00054 PGC_handle_t  PGC_open_file(char* filename);
00055 int PGC_get_global(PGC_handle_t h, PGC_global_t* global);
00056 int PGC_get_next_page(PGC_handle_t h, PGC_page_t* page);
00057 int PGC_get_next_var(PGC_handle_t h, PGC_var_t* var);
00058 int PGC_get_nb_page(PGC_handle_t h);
00059 int PGC_get_nb_var(PGC_handle_t h);
00060 int PGC_get_page_nb_var(PGC_handle_t h, int page);
00061 PGC_error_t PGC_get_last_error(PGC_handle_t h);
00062 
00063 
00064 /*PGC_bool_t PGC_save_config (PGC_handle_t h, char *filename);
00065 PGC_bool_t PGC_load_config (PGC_handle_t h, char *filename);*/
00066 
00067 #endif  /* _PAGES_CONFIG_H_ */
Framework Home Page.

Beware !! TSP wave is coming...