libjf API reference guide

Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

jf_recind_seq.c File Reference

#include <jf/jf_config.h>
#include <jf/jf_recind_seq.h>

Go to the source code of this file.

Defines

#define JF_TRACE_MODULE   JF_TRACE_MOD_LIB_RECIND_SEQ

Functions

int jf_recind_seq_add (jf_recind_seq_t *ris, const jf_recind_list_t *elem)
void jf_recind_seq_destroy (jf_recind_seq_t *ris)
void jf_recind_seq_reset (jf_recind_seq_t *ris)


Define Documentation

#define JF_TRACE_MODULE   JF_TRACE_MOD_LIB_RECIND_SEQ
 

Definition at line 32 of file jf_recind_seq.c.


Function Documentation

int jf_recind_seq_add jf_recind_seq_t ris,
const jf_recind_list_t elem
 

Add an element to a record index sequence object

Parameters:
ris IN/OUT record index sequence object
elem IN element must be added to sequence
Returns:
a reason code
Definition at line 64 of file jf_recind_seq.c.

References jf_recind_seq_t::array, CATCH, JF_RC_INTERNAL_ERROR, JF_RC_OBJ_CORRUPTED, JF_RC_OK, JF_RC_REALLOC_ERROR, jf_recind_seq_is_safe(), JF_TRACE, jf_recind_seq_t::size, and THROW.

Referenced by jf_journal_cold_recovery_update_lists().

void jf_recind_seq_destroy jf_recind_seq_t ris  ) 
 

Destroy an object of type jf_recind_seq_t NOTE: the object MUST be created calling jf_recind_seq_create before this method can be invoked

Parameters:
ris IN/OUT record index sequence object
Definition at line 45 of file jf_recind_seq.c.

References jf_recind_seq_t::array, jf_offset_t, jf_recind_list_destroy(), jf_recind_seq_is_safe(), jf_recind_seq_reset(), JF_TRACE, and jf_recind_seq_t::size.

Referenced by jf_recind_pool_destroy().

void jf_recind_seq_reset jf_recind_seq_t ris  ) 
 

Reset a jf_recind_seq_t object

Parameters:
ris OUT record index sequence object
Definition at line 36 of file jf_recind_seq.c.

References jf_recind_seq_t::array, JF_TRACE, and jf_recind_seq_t::size.

Referenced by jf_recind_seq_create(), and jf_recind_seq_destroy().


Copyright 2005 © Tiian