Remove silly tag dereferences suffix
[giggle.git] / src / giggle-job.h
blobce5e0a421c77dbfd58538e05ed39645dee62ca26
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3 * Copyright (C) 2007 Imendio AB
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of the
8 * License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
15 * You should have received a copy of the GNU General Public
16 * License along with this program; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GIGGLE_JOB_H__
22 #define __GIGGLE_JOB_H__
24 #include <glib-object.h>
26 G_BEGIN_DECLS
28 #define GIGGLE_TYPE_JOB (giggle_job_get_type ())
29 #define GIGGLE_JOB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_JOB, GiggleJob))
30 #define GIGGLE_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_JOB, GiggleJobClass))
31 #define GIGGLE_IS_JOB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIGGLE_TYPE_JOB))
32 #define GIGGLE_IS_JOB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_JOB))
33 #define GIGGLE_JOB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_JOB, GiggleJobClass))
35 typedef struct GiggleJob GiggleJob;
36 typedef struct GiggleJobClass GiggleJobClass;
38 struct GiggleJob {
39 GObject parent;
42 struct GiggleJobClass {
43 GObjectClass parent_class;
45 /* < Vtable > */
46 gboolean (* get_command_line) (GiggleJob *job,
47 gchar **command_line);
48 void (* handle_output) (GiggleJob *job,
49 const gchar *output_str,
50 gsize output_len);
53 GType giggle_job_get_type (void);
55 gboolean giggle_job_get_command_line (GiggleJob *job,
56 gchar **command_line);
57 void giggle_job_handle_output (GiggleJob *job,
58 const gchar *output_str,
59 gsize output_len);
61 G_END_DECLS
63 #endif /* __GIGGLE_JOB_H__ */