X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=util.h;h=8295c66fedf7d4534639d8db2bd59053ae02fa19;hb=c855fc4dc204f7fc78e16bdc5b43cf5e5ae8d444;hp=118a5d1e0b004dcbafa07d016d360ad5d847e46f;hpb=c5a4fe46b40ea3916df038b26fd89a5cfa4281c8;p=mtetherd diff --git a/util.h b/util.h index 118a5d1..8295c66 100644 --- a/util.h +++ b/util.h @@ -23,7 +23,13 @@ #include +// Opens /proc/modules and scans for g_ether +// Returns TRUE if found, FALSE if not gboolean mtetherd_scan_modules(const char *module); +// Launch an external script in the background +// command[] is a NULL-terminated list of arguments, +// command[0] is the full path of the script to execute +// Returns FALSE if fork() failed gboolean mtetherd_launch_script(const char *command[]); #endif //_MTETHERD_UTIL_H