- Main Page
- Modules
- Classes
- Files
- Directories
- Related Pages
- Examples

- Search for |

# guththila_namespace.h

    00001
    00002 /*
    00003  * Licensed to the Apache Software Foundation (ASF) under one or more
    00004  * contributor license agreements.  See the NOTICE file distributed with
    00005  * this work for additional information regarding copyright ownership.
    00006  * The ASF licenses this file to You under the Apache License, Version 2.0
    00007  * (the "License"); you may not use this file except in compliance with
    00008  * the License.  You may obtain a copy of the License at
    00009  *
    00010  *      http://www.apache.org/licenses/LICENSE-2.0
    00011  *
    00012  * Unless required by applicable law or agreed to in writing, software
    00013  * distributed under the License is distributed on an "AS IS" BASIS,
    00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00015  * See the License for the specific language governing permissions and
    00016  * limitations under the License.
    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;    /* Name */
    00033     guththila_token_t *uri;             /* 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