Back to index

dbus-test-runner  12.10.0
process.h
Go to the documentation of this file.
00001 /*
00002 Copyright 2012 Canonical Ltd.
00003 
00004 Authors:
00005     Ted Gould <ted@canonical.com>
00006 
00007 This program is free software: you can redistribute it and/or modify it 
00008 under the terms of the GNU General Public License version 3, as published 
00009 by the Free Software Foundation.
00010 
00011 This program is distributed in the hope that it will be useful, but 
00012 WITHOUT ANY WARRANTY; without even the implied warranties of 
00013 MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR 
00014 PURPOSE.  See the GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License along 
00017 with this program.  If not, see <http://www.gnu.org/licenses/>.
00018 */
00019 
00020 #ifndef __DBUS_TEST_PROCESS_H__
00021 #define __DBUS_TEST_PROCESS_H__
00022 
00023 #include <glib.h>
00024 #include <glib-object.h>
00025 #include "dbus-test.h"
00026 
00027 G_BEGIN_DECLS
00028 
00029 #define DBUS_TEST_TYPE_PROCESS            (dbus_test_process_get_type ())
00030 #define DBUS_TEST_PROCESS(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), DBUS_TEST_TYPE_PROCESS, DbusTestProcess))
00031 #define DBUS_TEST_PROCESS_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), DBUS_TEST_TYPE_PROCESS, DbusTestProcessClass))
00032 #define DBUS_TEST_IS_PROCESS(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DBUS_TEST_TYPE_PROCESS))
00033 #define DBUS_TEST_IS_PROCESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), DBUS_TEST_TYPE_PROCESS))
00034 #define DBUS_TEST_PROCESS_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), DBUS_TEST_TYPE_PROCESS, DbusTestProcessClass))
00035 
00036 typedef struct _DbusTestProcess         DbusTestProcess;
00037 typedef struct _DbusTestProcessClass    DbusTestProcessClass;
00038 typedef struct _DbusTestProcessPrivate  DbusTestProcessPrivate;
00039 
00040 struct _DbusTestProcessClass {
00041        DbusTestTaskClass parent_class;
00042 };
00043 
00044 struct _DbusTestProcess {
00045        DbusTestTask parent;
00046        DbusTestProcessPrivate * priv;
00047 };
00048 
00049 GType dbus_test_process_get_type (void);
00050 
00051 DbusTestProcess * dbus_test_process_new (const gchar * executable);
00052 void dbus_test_process_append_param (DbusTestProcess * process, const gchar * parameter);
00053 
00054 G_END_DECLS
00055 
00056 #endif