Back to index

lightdm  1.3.2
Functions | Variables
test-script-hook.c File Reference
#include <stdlib.h>
#include <glib.h>
#include <glib-object.h>
#include "status.h"

Go to the source code of this file.


static void request_cb (const gchar *message)
int main (int argc, char **argv)


static GKeyFile * config

Function Documentation

int main ( int  argc,
char **  argv 

Definition at line 15 of file test-script-hook.c.

    g_type_init ();

    status_connect (request_cb);

    config = g_key_file_new ();
    g_key_file_load_from_file (config, g_build_filename (g_getenv ("LIGHTDM_TEST_ROOT"), "script", NULL), G_KEY_FILE_NONE, NULL);
    if (argc < 2)
        g_printerr ("Usage: %s text [return-value]\n", argv[0]);
        return EXIT_FAILURE;

    status_notify ("SCRIPT-HOOK %s", argv[1]);

    if (argc > 2)
        return atoi (argv[2]);
        return EXIT_SUCCESS;

Here is the call graph for this function:

static void request_cb ( const gchar *  message) [static]

Definition at line 10 of file test-script-hook.c.


Here is the caller graph for this function:

Variable Documentation

GKeyFile* config [static]

Definition at line 7 of file test-script-hook.c.