/usr/include/net-snmp/library/container_iterator.h is in libsnmp-dev 5.7.3+dfsg-1.8ubuntu3.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | /**
* @file container_iterator.h
* @addtogroup container_iterator
* @{
*/
#ifndef _CONTAINER_ITERATOR_HANDLER_H_
#define _CONTAINER_ITERATOR_HANDLER_H_
#include "container.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef int (Netsnmp_Iterator_Loop_Key) (void *iterator_ctx,
netsnmp_ref_void* loop_ctx,
netsnmp_ref_void* key);
typedef int (Netsnmp_Iterator_Loop_Data)(void *iterator_ctx,
netsnmp_ref_void* loop_ctx,
netsnmp_ref_void* data);
typedef int (Netsnmp_Iterator_Ctx) (void *iterator_ctx,
netsnmp_ref_void* loop_ctx);
typedef int (Netsnmp_Iterator_Ctx_Dup) (void *iterator_ctx,
netsnmp_ref_void* loop_ctx,
netsnmp_ref_void* dup_ctx,
int reuse);
typedef int (Netsnmp_Iterator_Op) (void *iterator_ctx);
typedef int (Netsnmp_Iterator_Data) (void *iterator_ctx,
const void *data);
void netsnmp_container_iterator_init(void);
netsnmp_container* netsnmp_container_iterator_get(
void *iterator_user_ctx,
netsnmp_container_compare * compare,
Netsnmp_Iterator_Loop_Key * get_first,
Netsnmp_Iterator_Loop_Key * get_next,
Netsnmp_Iterator_Loop_Data * get_data,
Netsnmp_Iterator_Ctx_Dup * save_pos, /* iff returning static data */
Netsnmp_Iterator_Ctx * init_loop_ctx,
Netsnmp_Iterator_Ctx * cleanup_loop_ctx,
Netsnmp_Iterator_Data * free_user_ctx,
int sorted);
/*
* set up optional callbacks/
* NOTE: even though the first parameter is a generic netsnmp_container,
* this function should only be called for a container created
* by netsnmp_container_iterator_get.
*/
void
netsnmp_container_iterator_set_data_cb(netsnmp_container *c,
Netsnmp_Iterator_Data * insert_data,
Netsnmp_Iterator_Data * remove_data,
Netsnmp_Iterator_Op * get_size);
#ifdef __cplusplus
}
#endif
#endif /* _CONTAINER_ITERATOR_HANDLER_H_ */
/** @} */
|