23 lines
419 B
C
23 lines
419 B
C
|
#include <glib.h>
|
||
|
|
||
|
gboolean do_scuttling = TRUE;
|
||
|
|
||
|
gpointer
|
||
|
scuttle(gchar *ssb_dir)
|
||
|
{
|
||
|
gchar *config_file = g_strdup_printf("%s/config", ssb_dir);
|
||
|
g_print("Read config file %s\n", config_file);
|
||
|
g_free(config_file);
|
||
|
|
||
|
g_print("Starting scuttle\n");
|
||
|
|
||
|
while (do_scuttling) {
|
||
|
g_usleep(G_USEC_PER_SEC);
|
||
|
g_print("Scuttle…\n");
|
||
|
}
|
||
|
|
||
|
g_print("Scuttling stopped\n");
|
||
|
|
||
|
return NULL;
|
||
|
}
|