mainloop.h File Reference

clockd mainloop prototypes More...


Functions

int mainloop_stop (int force)
int mainloop_run (int argc, char *argv[])


Detailed Description

Copyright (C) 2008 Nokia. All rights reserved.

Author:
Simo Piiroinen <simo.piiroinen@nokia.com>

Raimo Vuonnala <raimo.vuonnala@nokia.com>


Function Documentation

int mainloop_stop ( int  force  ) 

Quit the mainloop.

Parameters:
force If nonzero and no mainloop, exit the process with failure
Returns:
1 if success, 0 if fails (no mainloop)

Referenced by sighnd_terminate().

int mainloop_run ( int  argc,
char *  argv[] 
)

This is clockd mainloop.

Args:
-d enable debug mode

  • init signals
  • inits dbus (server)
  • starts g_mainloop

Parameters:
argc argc
argv argv
Returns:
0 if exited normally, nonzero if exit with failure.

Referenced by main().


Generated on Mon Jun 21 15:45:53 2010 for clockd by  doxygen 1.5.6