blob: 86d41a31c77912ad395823d90f2240ab5d7089e8 [file] [log] [blame]
/*
* Copyright 2004,2005 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/
#ifndef GUTHTHILA_BUFFER_H
#define GUTHTHILA_BUFFER_H
#include <stdlib.h>
/* #include "guththila_environment.h" */
#include "guththila_defines.h"
#include <axis2_env.h>
typedef struct guththila_buffer_s
{
int size;
int next;
int last;
int offset;
int is_memory;
guththila_char_t *buff;
} guththila_buffer_t;
AXIS2_EXTERN guththila_buffer_t * AXIS2_CALL
guththila_buffer_create (axis2_env_t * environment, int size);
AXIS2_EXTERN guththila_buffer_t *
guththila_buffer_create_for_buffer (axis2_env_t * environment, char *buffer, int size);
AXIS2_EXTERN void
guththila_buffer_free (axis2_env_t * environment,
guththila_buffer_t * name);
AXIS2_EXTERN guththila_buffer_t *
guththila_buffer_grow (axis2_env_t * environment,
guththila_buffer_t * name);
#endif /* GUTHTHILA_BUFFER_H */