Back to index

bamf  0.2.120
bamf-daemon.h
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2011 Canonical Ltd
00003  *
00004  * This program is free software: you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 3 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00011  * GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00015  *
00016  * Authored by: Marco Trevisan (TreviƱo) <3v1n0@ubuntu.com>
00017  *
00018  */
00019 
00020 #ifndef __BAMFDAEMON_H__
00021 #define __BAMFDAEMON_H__
00022 
00023 #include "bamf.h"
00024 #include <glib.h>
00025 #include <glib-object.h>
00026 
00027 #define BAMF_TYPE_DAEMON                  (bamf_daemon_get_type ())
00028 #define BAMF_DAEMON(obj)                  (G_TYPE_CHECK_INSTANCE_CAST ((obj), BAMF_TYPE_DAEMON, BamfDaemon))
00029 #define BAMF_IS_DAEMON(obj)               (G_TYPE_CHECK_INSTANCE_TYPE ((obj), BAMF_TYPE_DAEMON))
00030 #define BAMF_DAEMON_CLASS(klass)          (G_TYPE_CHECK_CLASS_CAST ((klass), BAMF_TYPE_DAEMON, BamfDaemonClass))
00031 #define BAMF_IS_DAEMON_CLASS(klass)              (G_TYPE_CHECK_CLASS_TYPE ((klass), BAMF_TYPE_DAEMON))
00032 #define BAMF_DAEMON_GET_CLASS(obj)        (G_TYPE_INSTANCE_GET_CLASS ((obj), BAMF_TYPE_DAEMON, BamfDaemonClass))
00033 
00034 typedef struct _BamfDaemon BamfDaemon;
00035 typedef struct _BamfDaemonClass BamfDaemonClass;
00036 typedef struct _BamfDaemonPrivate BamfDaemonPrivate;
00037 
00038 struct _BamfDaemonClass
00039 {
00040   GObjectClass parent;
00041 };
00042 
00043 struct _BamfDaemon
00044 {
00045   GObject parent;
00046 
00047   /* private */
00048   BamfDaemonPrivate *priv;
00049 };
00050 
00051 GType        bamf_daemon_get_type    (void) G_GNUC_CONST;
00052 
00053 void         bamf_daemon_start       (BamfDaemon *self);
00054 
00055 void         bamf_daemon_stop        (BamfDaemon *self);
00056 
00057 gboolean     bamf_daemon_is_running  (BamfDaemon *self);
00058 
00059 BamfDaemon * bamf_daemon_get_default (void);
00060 
00061 #endif //__BAMFDAEMON_H__