Logo Search packages:      
Sourcecode: sofia-sip version File versions  Download package

su_vector.h File Reference


Detailed Description

Vector interface.

Defined when <sofia-sip/su_vector.h> has been included.

Author:
Pekka Pessi <Pekka.Pessi@nokia.com>
Date:
Created: Fri Sep 27 14:31:15 2002 ppessi

Definition in file su_vector.h.

#include <sofia-sip/su_alloc.h>

Go to the source code of this file.

Defines

#define su_vector_home(s)   ((su_home_t *)(s))

Typedefs

typedef void(* su_free_func_t )(void *data)
typedef
typedefSOFIA_BEGIN_DECLS
struct su_vector_s 
su_vector_t

Functions

SU_DLL int su_vector_append (su_vector_t *, void *item)
SU_DLL su_vector_t * su_vector_create (su_home_t *home, su_free_func_t free_f) __attribute__((__malloc__))
SU_DLL void su_vector_destroy (su_vector_t *)
SU_DLL int su_vector_empty (su_vector_t *vector)
SU_DLL void su_vector_free_array (su_vector_t *, void *array[])
SU_DLL void ** su_vector_get_array (su_vector_t *) __attribute__((__malloc__))
SU_DLL int su_vector_insert (su_vector_t *vector, usize_t index, void *item)
SU_DLL int su_vector_is_empty (su_vector_t const *vector)
SU_DLL void * su_vector_item (su_vector_t const *, usize_t i)
SU_DLL usize_t su_vector_len (su_vector_t const *l)
SU_DLL int su_vector_remove (su_vector_t *vector, usize_t index)


Generated by  Doxygen 1.6.0   Back to index