Context for a monitor. More...
Data Fields | |
| struct GNUNET_PEERSTORE_Monitor * | next |
| Kept in a DLL. | |
| struct GNUNET_PEERSTORE_Monitor * | prev |
| Kept in a DLL. | |
| GNUNET_SCHEDULER_TaskCallback | error_cb |
| Function to call on errors. | |
| void * | error_cb_cls |
| Closure for error_cb. | |
| GNUNET_PEERSTORE_Processor | callback |
| Callback with each record received. | |
| void * | callback_cls |
| Closure for callback. | |
| struct GNUNET_HashCode | keyhash |
| Hash of the combined key. | |
| const struct GNUNET_PeerIdentity * | peer |
| The peer we are watching for values, pointing at peer_buf, or NULL if we watch all peers. | |
| struct GNUNET_PeerIdentity | peer_buf |
| Backing storage for peer. | |
| char * | key |
| The key we like to watch for values. | |
| char * | sub_system |
| The sub system requested the watch. | |
| uint32_t | rid |
| Request ID. | |
| const struct GNUNET_CONFIGURATION_Handle * | cfg |
| CFG. | |
| GNUNET_SCHEDULER_TaskCallback | sync_cb |
| Sync CB. | |
| void * | sync_cb_cls |
| Sync CB cls. | |
| struct GNUNET_MQ_Handle * | mq |
| MQ. | |
| int | iterate_first |
| Iterate first flag. | |
Context for a monitor.
Definition at line 37 of file peerstore_api_monitor.c.
| struct GNUNET_PEERSTORE_Monitor* GNUNET_PEERSTORE_Monitor::next |
Kept in a DLL.
Definition at line 42 of file peerstore_api_monitor.c.
| struct GNUNET_PEERSTORE_Monitor* GNUNET_PEERSTORE_Monitor::prev |
Kept in a DLL.
Definition at line 47 of file peerstore_api_monitor.c.
| GNUNET_SCHEDULER_TaskCallback GNUNET_PEERSTORE_Monitor::error_cb |
Function to call on errors.
Definition at line 52 of file peerstore_api_monitor.c.
| void* GNUNET_PEERSTORE_Monitor::error_cb_cls |
Closure for error_cb.
Definition at line 57 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().
| GNUNET_PEERSTORE_Processor GNUNET_PEERSTORE_Monitor::callback |
Callback with each record received.
Definition at line 62 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().
| void* GNUNET_PEERSTORE_Monitor::callback_cls |
Closure for callback.
Definition at line 67 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().
| struct GNUNET_HashCode GNUNET_PEERSTORE_Monitor::keyhash |
Hash of the combined key.
Definition at line 72 of file peerstore_api_monitor.c.
| const struct GNUNET_PeerIdentity* GNUNET_PEERSTORE_Monitor::peer |
The peer we are watching for values, pointing at peer_buf, or NULL if we watch all peers.
Owned by us: reconnect() may run arbitrarily long after GNUNET_PEERSTORE_monitor_start() returned, so borrowing the caller's storage would be a use-after-free the moment the caller's object dies before the monitor does.
Definition at line 81 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().
| struct GNUNET_PeerIdentity GNUNET_PEERSTORE_Monitor::peer_buf |
Backing storage for peer.
Definition at line 86 of file peerstore_api_monitor.c.
| char* GNUNET_PEERSTORE_Monitor::key |
The key we like to watch for values.
Owned by us, see peer.
Definition at line 91 of file peerstore_api_monitor.c.
| char* GNUNET_PEERSTORE_Monitor::sub_system |
The sub system requested the watch.
Definition at line 96 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().
| uint32_t GNUNET_PEERSTORE_Monitor::rid |
Request ID.
Definition at line 101 of file peerstore_api_monitor.c.
| const struct GNUNET_CONFIGURATION_Handle* GNUNET_PEERSTORE_Monitor::cfg |
CFG.
Definition at line 106 of file peerstore_api_monitor.c.
| GNUNET_SCHEDULER_TaskCallback GNUNET_PEERSTORE_Monitor::sync_cb |
| void* GNUNET_PEERSTORE_Monitor::sync_cb_cls |
Sync CB cls.
Definition at line 116 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().
| struct GNUNET_MQ_Handle* GNUNET_PEERSTORE_Monitor::mq |
MQ.
Definition at line 121 of file peerstore_api_monitor.c.
| int GNUNET_PEERSTORE_Monitor::iterate_first |
Iterate first flag.
Definition at line 126 of file peerstore_api_monitor.c.
Referenced by GNUNET_PEERSTORE_monitor_start().