1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
3
* Copyright (C) 2008 Mathias Hasselmann
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_GIT_CAT_FILE_H__
22
#define __GIGGLE_GIT_CAT_FILE_H__
24
#include <libgiggle/giggle-job.h>
28
#define GIGGLE_TYPE_GIT_CAT_FILE (giggle_git_cat_file_get_type ())
29
#define GIGGLE_GIT_CAT_FILE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_GIT_CAT_FILE, GiggleGitCatFile))
30
#define GIGGLE_GIT_CAT_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_GIT_CAT_FILE, GiggleGitCatFileClass))
31
#define GIGGLE_IS_GIT_CAT_FILE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIGGLE_TYPE_GIT_CAT_FILE))
32
#define GIGGLE_IS_GIT_CAT_FILE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_GIT_CAT_FILE))
33
#define GIGGLE_GIT_CAT_FILE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_GIT_CAT_FILE, GiggleGitCatFileClass))
35
typedef struct GiggleGitCatFile GiggleGitCatFile;
36
typedef struct GiggleGitCatFileClass GiggleGitCatFileClass;
38
struct GiggleGitCatFile {
42
struct GiggleGitCatFileClass {
43
GiggleJobClass parent_class;
46
GType giggle_git_cat_file_get_type (void);
47
GiggleJob * giggle_git_cat_file_new (const char *type,
50
const char * giggle_git_cat_file_get_contents (GiggleGitCatFile *job,
55
#endif /* __GIGGLE_GIT_CAT_FILE_H__ */