Store module header file. More...
#include "data_types.h"
Go to the source code of this file.
Data Structures | |
struct | store_data_stream_info_t |
struct | store_data_t |
struct | store_t |
Functions | |
void | store_data_set_state (store_data_t *store_data, E_STORE_DATA_STATE state) |
E_STORE_DATA_STATE | store_data_get_state (store_data_t *store_data) |
E_MCL_ERROR_CODE | store_data_remove (list_t *store_list, list_node_t *store_data_node) |
mcl_size_t | store_get_data_count (store_t *store) |
Store module header file.
Definition in file store.h.
enum E_STORE_DATA_STATE |
Store data states.
enum E_STORE_DATA_TYPE |
Data type of a data in the store.
E_STORE_DATA_STATE store_data_get_state | ( | store_data_t * | store_data | ) |
This function is used to get the state of the data.
[in] | store_data | Current store data. |
Definition at line 345 of file store.c.
References DEBUG_ENTRY, DEBUG_LEAVE, MCL_DEBUG, and store_data_t::state.
Referenced by _exchange_clear_sent_data_from_store(), _exchange_fill_http_request(), and _exchange_update_store_data_state().
E_MCL_ERROR_CODE store_data_remove | ( | list_t * | store_list, |
list_node_t * | store_data_node | ||
) |
This function is used to remove a store data from the store.
Needs to know in which list ( high_priority_list or low_priority_list ) this data resides.
[in] | store_list | The list in the store holding the data. |
[in] | store_data_node | List node of the data requested to be removed. |
store_list
is empty. Definition at line 355 of file store.c.
References _store_list_destroy_callback(), DEBUG_ENTRY, DEBUG_LEAVE, and list_remove_with_content().
Referenced by _exchange_clear_sent_data_from_store().
void store_data_set_state | ( | store_data_t * | store_data, |
E_STORE_DATA_STATE | state | ||
) |
This function is used to set the state of the store data.
[in] | store_data | Current store data. |
[in] | state | New state of the data. |
Definition at line 334 of file store.c.
References DEBUG_ENTRY, DEBUG_LEAVE, MCL_DEBUG, and store_data_t::state.
Referenced by _exchange_add_current_data_to_request(), _exchange_add_current_data_to_request_by_streaming(), _exchange_fill_http_request(), _exchange_prepare_data(), and _exchange_update_store_data_state().
mcl_size_t store_get_data_count | ( | store_t * | store | ) |
This function is used to get the count of items in store.
[in] | store | The store handle. |
Definition at line 366 of file store.c.
References mcl_list_t::count, DEBUG_ENTRY, DEBUG_LEAVE, store_t::high_priority_list, and store_t::low_priority_list.
Referenced by http_processor_exchange(), and http_processor_stream().