00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef GUTHTHILA_NAMESPACE_H
00019 #define GUTHTHILA_NAMESPACE_H
00020
00021 #include <guththila_defines.h>
00022 #include <guththila_token.h>
00023 #include <axutil_utils.h>
00024 EXTERN_C_START()
00025
00026 #ifndef GUTHTHILA_NAMESPACE_DEF_SIZE
00027 #define GUTHTHILA_NAMESPACE_DEF_SIZE 4
00028 #endif
00029
00030 typedef struct guththila_namespace_s
00031 {
00032 guththila_token_t *name;
00033 guththila_token_t *uri;
00034 } guththila_namespace_t;
00035
00036 typedef struct guththila_namespace_list_s
00037 {
00038 guththila_namespace_t *list;
00039 guththila_stack_t fr_stack;
00040 int size;
00041 int capacity;
00042 } guththila_namespace_list_t;
00043
00044 guththila_namespace_list_t *
00045 GUTHTHILA_CALL guththila_namespace_list_create(const axutil_env_t * env);
00046
00047 int GUTHTHILA_CALL
00048 guththila_namespace_list_init(
00049 guththila_namespace_list_t * at_list,
00050 const axutil_env_t * env);
00051
00052 guththila_namespace_t * GUTHTHILA_CALL
00053 guththila_namespace_list_get(guththila_namespace_list_t *at_list,
00054 const axutil_env_t * env);
00055
00056 int GUTHTHILA_CALL
00057 guththila_namespace_list_release(
00058 guththila_namespace_list_t * at_list,
00059 guththila_namespace_t * namesp,
00060 const axutil_env_t * env);
00061
00062 void GUTHTHILA_CALL
00063 msuila_namespace_list_free_data(
00064 guththila_namespace_list_t * at_list,
00065 const axutil_env_t * env);
00066
00067 void GUTHTHILA_CALL
00068 guththila_namespace_list_free(
00069 guththila_namespace_list_t * at_list,
00070 const axutil_env_t * env);
00071
00072 EXTERN_C_END()
00073 #endif
00074