$search

eloop_none.c File Reference

#include "includes.h"
#include "common.h"
#include "eloop.h"
Include dependency graph for eloop_none.c:

Go to the source code of this file.

Classes

struct  eloop_data
struct  eloop_signal
struct  eloop_sock
struct  eloop_timeout

Functions

int eloop_cancel_timeout (void(*handler)(void *eloop_ctx, void *sock_ctx), void *eloop_data, void *user_data)
void eloop_destroy (void)
int eloop_init (void)
int eloop_is_timeout_registered (void(*handler)(void *eloop_ctx, void *timeout_ctx), void *eloop_data, void *user_data)
static void eloop_process_pending_signals (void)
int eloop_register_read_sock (int sock, void(*handler)(int sock, void *eloop_ctx, void *sock_ctx), void *eloop_data, void *user_data)
int eloop_register_signal (int sig, void(*handler)(int sig, void *eloop_ctx, void *signal_ctx), void *user_data)
int eloop_register_signal_reconfig (void(*handler)(int sig, void *eloop_ctx, void *signal_ctx), void *user_data)
int eloop_register_signal_terminate (void(*handler)(int sig, void *eloop_ctx, void *signal_ctx), void *user_data)
int eloop_register_timeout (unsigned int secs, unsigned int usecs, void(*handler)(void *eloop_ctx, void *timeout_ctx), void *eloop_data, void *user_data)
void eloop_run (void)
void eloop_terminate (void)
int eloop_terminated (void)
void eloop_unregister_read_sock (int sock)
void eloop_wait_for_read_sock (int sock)

Variables

static struct eloop_data eloop

Function Documentation

int eloop_cancel_timeout ( void(*)(void *eloop_ctx, void *sock_ctx)  handler,
void *  eloop_data,
void *  user_data 
)

Definition at line 165 of file eloop_none.c.

void eloop_destroy ( void   ) 

eloop_destroy - Free any resources allocated for the event loop

After calling eloop_destroy(), other eloop_* functions must not be called before re-running eloop_init().

Definition at line 374 of file eloop_none.c.

int eloop_init ( void   ) 

eloop_init() - Initialize global event loop data Returns: 0 on success, -1 on failure

This function must be called before any other eloop_* function.

Definition at line 61 of file eloop_none.c.

int eloop_is_timeout_registered ( void(*)(void *eloop_ctx, void *timeout_ctx)  handler,
void *  eloop_data,
void *  user_data 
)

Definition at line 197 of file eloop_none.c.

static void eloop_process_pending_signals ( void   )  [static]

Definition at line 234 of file eloop_none.c.

int eloop_register_read_sock ( int  sock,
void(*)(int sock, void *eloop_ctx, void *sock_ctx)  handler,
void *  eloop_data,
void *  user_data 
)

Definition at line 68 of file eloop_none.c.

int eloop_register_signal ( int  sig,
void(*)(int sig, void *eloop_ctx, void *signal_ctx)  handler,
void *  user_data 
)

Definition at line 257 of file eloop_none.c.

int eloop_register_signal_reconfig ( void(*)(int sig, void *eloop_ctx, void *signal_ctx)  handler,
void *  user_data 
)

Definition at line 299 of file eloop_none.c.

int eloop_register_signal_terminate ( void(*)(int sig, void *eloop_ctx, void *signal_ctx)  handler,
void *  user_data 
)

Definition at line 284 of file eloop_none.c.

int eloop_register_timeout ( unsigned int  secs,
unsigned int  usecs,
void(*)(void *eloop_ctx, void *timeout_ctx)  handler,
void *  eloop_data,
void *  user_data 
)

Definition at line 118 of file eloop_none.c.

void eloop_run ( void   ) 

eloop_run - Start the event loop

Start the event loop and continue running as long as there are any registered event handlers. This function is run after event loop has been initialized with event_init() and one or more events have been registered.

Definition at line 311 of file eloop_none.c.

void eloop_terminate ( void   ) 

eloop_terminate - Terminate event loop

Terminate event loop even if there are registered events. This can be used to request the program to be terminated cleanly.

Definition at line 368 of file eloop_none.c.

int eloop_terminated ( void   ) 

eloop_terminated - Check whether event loop has been terminated Returns: 1 = event loop terminate, 0 = event loop still running

This function can be used to check whether eloop_terminate() has been called to request termination of the event loop. This is normally used to abort operations that may still be queued to be run when eloop_terminate() was called.

Definition at line 389 of file eloop_none.c.

void eloop_unregister_read_sock ( int  sock  ) 

eloop_unregister_read_sock - Unregister handler for read events : File descriptor number for the socket

Unregister a read socket notifier that was previously registered with eloop_register_read_sock().

Definition at line 95 of file eloop_none.c.

void eloop_wait_for_read_sock ( int  sock  ) 

eloop_wait_for_read_sock - Wait for a single reader : File descriptor number for the socket

Do a blocking wait for a single read socket.

Definition at line 395 of file eloop_none.c.


Variable Documentation

struct eloop_data eloop [static]

Definition at line 58 of file eloop_none.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


wpa_supplicant_node
Author(s): Package maintained by Blaise Gassend
autogenerated on Fri Mar 1 16:00:20 2013