Skip to content

File broker_list.c

FileList > broker > broker_list.c

Go to the source code of this file

  • #include <stdio.h>
  • #include <stdlib.h>
  • #include "cas_common.h"
  • #include "broker_list.h"

Public Functions

Type Name
int link_list_add (T_LIST ** cur_head, void * add_key, void * add_val, int(*)(T_LIST *, void *, void *) assign_func)
int link_list_default_assign_func (T_LIST * node, void * key, void * value)
int link_list_default_compare_func (void * key, void * value)
int link_list_delete (T_LIST ** cur_head, void(*)(T_LIST *) node_dealloc)
T_LIST * link_list_find (T_LIST * head, void * key, void * val, int(*)(void *, void *) key_cmp_func, int(*)(void *, void *) val_cmp_func)
int link_list_node_delete (T_LIST ** cur_head, void * key, int(*)(void *, void *) cmp_func, void(*)(T_LIST *) node_dealloc)
int link_list_node_delete2 (T_LIST ** cur_head, void * key, void * value, int(*)(void *, void *) key_cmp_func, int(*)(void *, void *) val_cmp_func, void(*)(T_LIST *) node_dealloc)
void * link_list_traverse (T_LIST * head, void *(*)(T_LIST *, void *) traverse_func)

Public Static Functions

Type Name
T_LIST * delete_node (T_LIST * head, T_LIST * del_node, void(*)(T_LIST *) node_dealloc)
void swap_node (T_LIST * node1, T_LIST * node2)
int true_func (void * key, void * value)

Public Functions Documentation

int link_list_add (
    T_LIST ** cur_head,
    void * add_key,
    void * add_val,
    int (*)( T_LIST *, void *, void *) assign_func
) 

int link_list_default_assign_func (
    T_LIST * node,
    void * key,
    void * value
) 

int link_list_default_compare_func (
    void * key,
    void * value
) 

int link_list_delete (
    T_LIST ** cur_head,
    void (*)( T_LIST *) node_dealloc
) 

T_LIST * link_list_find (
    T_LIST * head,
    void * key,
    void * val,
    int (*)( void *, void *) key_cmp_func,
    int (*)( void *, void *) val_cmp_func
) 

int link_list_node_delete (
    T_LIST ** cur_head,
    void * key,
    int (*)( void *, void *) cmp_func,
    void (*)( T_LIST *) node_dealloc
) 

int link_list_node_delete2 (
    T_LIST ** cur_head,
    void * key,
    void * value,
    int (*)( void *, void *) key_cmp_func,
    int (*)( void *, void *) val_cmp_func,
    void (*)( T_LIST *) node_dealloc
) 

void * link_list_traverse (
    T_LIST * head,
    void *(*)( T_LIST *, void *) traverse_func
) 

Public Static Functions Documentation

function delete_node

static T_LIST * delete_node (
    T_LIST * head,
    T_LIST * del_node,
    void (*)( T_LIST *) node_dealloc
) 

function swap_node

static void swap_node (
    T_LIST * node1,
    T_LIST * node2
) 

function true_func

static int true_func (
    void * key,
    void * value
) 


The documentation for this class was generated from the following file cubrid/src/broker/broker_list.c