le_fdMonitor.h
Go to the documentation of this file.
1 
279 //--------------------------------------------------------------------------------------------------
287 #ifndef LEGATO_FDMONITOR_INCLUDE_GUARD
288 #define LEGATO_FDMONITOR_INCLUDE_GUARD
289 
290 
291 //--------------------------------------------------------------------------------------------------
297 //--------------------------------------------------------------------------------------------------
298 typedef struct le_fdMonitor* le_fdMonitor_Ref_t;
299 
300 
301 //--------------------------------------------------------------------------------------------------
339 //--------------------------------------------------------------------------------------------------
340 typedef void (*le_fdMonitor_HandlerFunc_t)
341 (
342  int fd,
343  short events
344 );
345 
346 
347 //--------------------------------------------------------------------------------------------------
376 //--------------------------------------------------------------------------------------------------
378 (
379  const char* name,
380  int fd,
381  le_fdMonitor_HandlerFunc_t handlerFunc,
382  short events
383 );
384 
385 
386 //--------------------------------------------------------------------------------------------------
398 //--------------------------------------------------------------------------------------------------
400 (
401  le_fdMonitor_Ref_t monitorRef,
402  short events
403 );
404 
405 
406 //--------------------------------------------------------------------------------------------------
418 //--------------------------------------------------------------------------------------------------
420 (
421  le_fdMonitor_Ref_t monitorRef,
422  short events
423 );
424 
425 
426 //--------------------------------------------------------------------------------------------------
438 //--------------------------------------------------------------------------------------------------
440 (
441  le_fdMonitor_Ref_t monitorRef,
442  bool isDeferrable
443 );
444 
445 
446 //--------------------------------------------------------------------------------------------------
452 //--------------------------------------------------------------------------------------------------
454 (
455  le_fdMonitor_Ref_t monitorRef,
456  void* contextPtr
457 );
458 
459 
460 //--------------------------------------------------------------------------------------------------
471 //--------------------------------------------------------------------------------------------------
473 (
474  void
475 );
476 
477 
478 //--------------------------------------------------------------------------------------------------
486 //--------------------------------------------------------------------------------------------------
488 (
489  void
490 );
491 
492 
493 //--------------------------------------------------------------------------------------------------
497 //--------------------------------------------------------------------------------------------------
499 (
500  le_fdMonitor_Ref_t monitorRef
501 );
502 
503 
504 #endif // LEGATO_FDMONITOR_INCLUDE_GUARD
void * le_fdMonitor_GetContextPtr(void)
void(* le_fdMonitor_HandlerFunc_t)(int fd, short events)
Definition: le_fdMonitor.h:341
void le_fdMonitor_SetContextPtr(le_fdMonitor_Ref_t monitorRef, void *contextPtr)
void le_fdMonitor_Delete(le_fdMonitor_Ref_t monitorRef)
le_fdMonitor_Ref_t le_fdMonitor_GetMonitor(void)
void le_fdMonitor_Disable(le_fdMonitor_Ref_t monitorRef, short events)
void le_fdMonitor_Enable(le_fdMonitor_Ref_t monitorRef, short events)
void le_fdMonitor_SetDeferrable(le_fdMonitor_Ref_t monitorRef, bool isDeferrable)
struct le_fdMonitor * le_fdMonitor_Ref_t
Definition: le_fdMonitor.h:298
le_fdMonitor_Ref_t le_fdMonitor_Create(const char *name, int fd, le_fdMonitor_HandlerFunc_t handlerFunc, short events)