66 lines
2.3 KiB
C
66 lines
2.3 KiB
C
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
|
|
*
|
|
* Copyright (C) 2007-2008 Richard Hughes <richard@hughsie.com>
|
|
*
|
|
* Licensed under the GNU General Public License Version 2
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __PK_BACKEND_SPAWN_H
|
|
#define __PK_BACKEND_SPAWN_H
|
|
|
|
#include <glib-object.h>
|
|
#include <pk-enum-list.h>
|
|
#include "pk-backend.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define PK_TYPE_BACKEND_SPAWN (pk_backend_spawn_get_type ())
|
|
#define PK_BACKEND_SPAWN(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), PK_TYPE_BACKEND_SPAWN, PkBackendSpawn))
|
|
#define PK_BACKEND_SPAWN_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), PK_TYPE_BACKEND_SPAWN, PkBackendSpawnClass))
|
|
#define PK_IS_BACKEND_SPAWN(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), PK_TYPE_BACKEND_SPAWN))
|
|
#define PK_IS_BACKEND_SPAWN_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), PK_TYPE_BACKEND_SPAWN))
|
|
#define PK_BACKEND_SPAWN_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), PK_TYPE_BACKEND_SPAWN, PkBackendSpawnClass))
|
|
|
|
typedef struct PkBackendSpawnPrivate PkBackendSpawnPrivate;
|
|
|
|
typedef struct
|
|
{
|
|
GObject parent;
|
|
PkBackendSpawnPrivate *priv;
|
|
} PkBackendSpawn;
|
|
|
|
typedef struct
|
|
{
|
|
GObjectClass parent_class;
|
|
} PkBackendSpawnClass;
|
|
|
|
/* general */
|
|
GType pk_backend_spawn_get_type (void) G_GNUC_CONST;
|
|
PkBackendSpawn *pk_backend_spawn_new (void);
|
|
gboolean pk_backend_spawn_helper (PkBackendSpawn *backend_spawn,
|
|
const gchar *script,
|
|
const gchar *first_element, ...);
|
|
gboolean pk_backend_spawn_kill (PkBackendSpawn *backend_spawn);
|
|
const gchar *pk_backend_spawn_get_name (PkBackendSpawn *backend_spawn);
|
|
gboolean pk_backend_spawn_set_name (PkBackendSpawn *backend_spawn,
|
|
const gchar *name);
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __PK_BACKEND_SPAWN_H */
|