UniMRCP  1.7.0
Data Structures | Typedefs | Functions
apt_pair.h File Reference

Generic Name-Value Pair. More...

#include <apr_tables.h>
#include "apt_string.h"
Include dependency graph for apt_pair.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  apt_pair_t
 

Typedefs

typedef typedefAPT_BEGIN_EXTERN_C struct apt_pair_t apt_pair_t
 
typedef apr_array_header_t apt_pair_arr_t
 

Functions

apt_pair_arr_tapt_pair_array_create (apr_size_t initial_size, apr_pool_t *pool)
 
apt_pair_arr_tapt_pair_array_copy (const apt_pair_arr_t *src, apr_pool_t *pool)
 
apt_bool_t apt_pair_array_append (apt_pair_arr_t *arr, const apt_str_t *name, const apt_str_t *value, apr_pool_t *pool)
 
const apt_pair_tapt_pair_array_find (const apt_pair_arr_t *arr, const apt_str_t *name)
 
int apt_pair_array_size_get (const apt_pair_arr_t *arr)
 
const apt_pair_tapt_pair_array_get (const apt_pair_arr_t *arr, int id)
 

Detailed Description

Generic Name-Value Pair.

Typedef Documentation

◆ apt_pair_arr_t

typedef apr_array_header_t apt_pair_arr_t

Dynamic array of name-value pairs

◆ apt_pair_t

typedef typedefAPT_BEGIN_EXTERN_C struct apt_pair_t apt_pair_t

Name-value declaration

Function Documentation

◆ apt_pair_array_append()

apt_bool_t apt_pair_array_append ( apt_pair_arr_t arr,
const apt_str_t name,
const apt_str_t value,
apr_pool_t *  pool 
)

Append name-value pair

◆ apt_pair_array_copy()

apt_pair_arr_t* apt_pair_array_copy ( const apt_pair_arr_t src,
apr_pool_t *  pool 
)

Copy array of name-value pairs

◆ apt_pair_array_create()

apt_pair_arr_t* apt_pair_array_create ( apr_size_t  initial_size,
apr_pool_t *  pool 
)

Create array of name-value pairs

◆ apt_pair_array_find()

const apt_pair_t* apt_pair_array_find ( const apt_pair_arr_t arr,
const apt_str_t name 
)

Find name-value pair by name

◆ apt_pair_array_get()

const apt_pair_t* apt_pair_array_get ( const apt_pair_arr_t arr,
int  id 
)

Get name-value pair by id

◆ apt_pair_array_size_get()

int apt_pair_array_size_get ( const apt_pair_arr_t arr)

Get size of pair array