• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • kdeedu
  • Sitemap
  • Contact Us
 

kstars

IE Functions: Functions drivers call to register with the INDI event utilities.


Detailed Description

Callbacks are called when a read on a file descriptor will not block.

Timers are called once after a specified interval. Workprocs are called when there is nothing else to do. The "Add" functions return a unique id for use with their corresponding "Rm" removal function. An arbitrary pointer may be specified when a function is registered which will be stored and forwarded unchanged when the function is later invoked.


Typedefs

typedef void( IE_CBF )(int readfiledes, void *userpointer)
typedef void( IE_TCF )(void *userpointer)
typedef void( IE_WPF )(void *userpointer)

Functions

int IEAddCallback (int readfiledes, IE_CBF *fp, void *userpointer)
void IERmCallback (int callbackid)
int IEAddTimer (int millisecs, IE_TCF *fp, void *userpointer)
void IERmTimer (int timerid)
int IEAddWorkProc (IE_WPF *fp, void *userpointer)
void IERmWorkProc (int workprocid)
int IEDeferLoop (int maxms, int *flagp)
int IEDeferLoop0 (int maxms, int *flagp)

Typedef Documentation

IE_CBF

Signature of a callback.

Definition at line 325 of file indidevapi.h.

IE_TCF

Signature of a timeout caller.

Definition at line 329 of file indidevapi.h.

IE_WPF

Signature of a work procedure function.

Definition at line 333 of file indidevapi.h.


Function Documentation

int IEAddCallback ( int  readfiledes,
IE_CBF *  fp,
void *  userpointer 
)

Register a new callback, fp, to be called with userpointer as argument when readfiledes is ready.

Parameters:
readfiledes file descriptor.
fp a pointer to the callback function.
userpointer a pointer to be passed to the callback function when called.
Returns:
a unique callback id for use with IERmCallback().

int IEAddTimer ( int  millisecs,
IE_TCF *  fp,
void *  userpointer 
)

Register a new timer function, fp, to be called with ud as argument after ms.

Add to list in order of decreasing time from epoch, ie, last entry runs soonest. The timer will only invoke the callback function once. You need to call addTimer again if you want to repeat the process.

Parameters:
millisecs timer period in milliseconds.
fp a pointer to the callback function.
userpointer a pointer to be passed to the callback function when called.
Returns:
a unique id for use with IERmTimer().

int IEAddWorkProc ( IE_WPF *  fp,
void *  userpointer 
)

Add a new work procedure, fp, to be called with ud when nothing else to do.

Parameters:
fp a pointer to the work procedure callback function.
userpointer a pointer to be passed to the callback function when called.
Returns:
a unique id for use with IERmWorkProc().

int IEDeferLoop ( int  maxms,
int *  flagp 
)

int IEDeferLoop0 ( int  maxms,
int *  flagp 
)

void IERmCallback ( int  callbackid  ) 

Remove a callback function.

Parameters:
callbackid the callback ID returned from IEAddCallback()

void IERmTimer ( int  timerid  ) 

Remove the timer with the given timerid, as returned from IEAddTimer.

Parameters:
timerid the timer callback ID returned from IEAddTimer().

void IERmWorkProc ( int  workprocid  ) 

Remove a work procedure.

Parameters:
workprocid The unique ID for the work procedure to be removed.

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal