Back to index

dbus-test-runner  12.10.0
Classes | Defines | Typedefs | Functions
bustle.h File Reference
#include <glib.h>
#include <glib-object.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DbusTestBustleClass
struct  _DbusTestBustle

Defines

#define DBUS_TEST_TYPE_BUSTLE   (dbus_test_bustle_get_type ())
#define DBUS_TEST_BUSTLE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUS_TEST_TYPE_BUSTLE, DbusTestBustle))
#define DBUS_TEST_BUSTLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), DBUS_TEST_TYPE_BUSTLE, DbusTestBustleClass))
#define DBUS_TEST_IS_BUSTLE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUS_TEST_TYPE_BUSTLE))
#define DBUS_TEST_IS_BUSTLE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUS_TEST_TYPE_BUSTLE))
#define DBUS_TEST_BUSTLE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUS_TEST_TYPE_BUSTLE, DbusTestBustleClass))

Typedefs

typedef struct _DbusTestBustle
typedef struct _DbusTestBustleClass
typedef struct _DbusTestBustlePrivate

Functions

GType dbus_test_bustle_get_type (void)
DbusTestBustle * dbus_test_bustle_new (const gchar *filename)
void dbus_test_bustle_set_executable (DbusTestBustle *bustle, const gchar *executable)

Class Documentation

struct _DbusTestBustleClass

Definition at line 39 of file bustle.h.

Class Members
DbusTestTaskClass parent_class
struct _DbusTestBustle

Definition at line 43 of file bustle.h.

Class Members
DbusTestTask parent
DbusTestBustlePrivate * priv

Define Documentation

#define DBUS_TEST_BUSTLE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUS_TEST_TYPE_BUSTLE, DbusTestBustle))

Definition at line 29 of file bustle.h.

#define DBUS_TEST_BUSTLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DBUS_TEST_TYPE_BUSTLE, DbusTestBustleClass))

Definition at line 30 of file bustle.h.

#define DBUS_TEST_BUSTLE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUS_TEST_TYPE_BUSTLE, DbusTestBustleClass))

Definition at line 33 of file bustle.h.

#define DBUS_TEST_IS_BUSTLE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUS_TEST_TYPE_BUSTLE))

Definition at line 31 of file bustle.h.

#define DBUS_TEST_IS_BUSTLE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUS_TEST_TYPE_BUSTLE))

Definition at line 32 of file bustle.h.

Definition at line 28 of file bustle.h.


Typedef Documentation

typedef struct _DbusTestBustle

Definition at line 35 of file bustle.h.

typedef struct _DbusTestBustleClass

Definition at line 36 of file bustle.h.

typedef struct _DbusTestBustlePrivate

Definition at line 37 of file bustle.h.


Function Documentation

GType dbus_test_bustle_get_type ( void  )
DbusTestBustle* dbus_test_bustle_new ( const gchar *  filename)

Definition at line 140 of file bustle.c.

{
       g_return_val_if_fail(filename != NULL, NULL);

       DbusTestBustle * bustler = g_object_new(DBUS_TEST_TYPE_BUSTLE,
                                               NULL);

       g_free(bustler->priv->filename);
       bustler->priv->filename = g_strdup(filename);

       dbus_test_task_set_name(DBUS_TEST_TASK(bustler), "Bustle");

       return bustler;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void dbus_test_bustle_set_executable ( DbusTestBustle *  bustle,
const gchar *  executable 
)

Definition at line 156 of file bustle.c.

{
       g_return_if_fail(DBUS_TEST_IS_BUSTLE(bustle));
       g_return_if_fail(executable != NULL);

       g_free(bustle->priv->executable);
       bustle->priv->executable = g_strdup(executable);

       return;
}

Here is the caller graph for this function: