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 *GUTHTHILA_CALL
00045 guththila_namespace_list_create(
00046 const axutil_env_t * env);
00047
00048 int GUTHTHILA_CALL
00049 guththila_namespace_list_init(
00050 guththila_namespace_list_t * at_list,
00051 const axutil_env_t * env);
00052
00053 guththila_namespace_t * GUTHTHILA_CALL
00054 guththila_namespace_list_get(
00055 guththila_namespace_list_t *at_list,
00056 const axutil_env_t * env);
00057
00058 int GUTHTHILA_CALL
00059 guththila_namespace_list_release(
00060 guththila_namespace_list_t * at_list,
00061 guththila_namespace_t * namesp,
00062 const axutil_env_t * env);
00063
00064 void GUTHTHILA_CALL
00065 msuila_namespace_list_free_data(
00066 guththila_namespace_list_t * at_list,
00067 const axutil_env_t * env);
00068
00069 void GUTHTHILA_CALL
00070 guththila_namespace_list_free(
00071 guththila_namespace_list_t * at_list,
00072 const axutil_env_t * env);
00073
00074 EXTERN_C_END()
00075 #endif
00076