~ubuntu-branches/ubuntu/lucid/giggle/lucid

« back to all changes in this revision

Viewing changes to libgiggle-git/giggle-git-diff-tree.h

  • Committer: Bazaar Package Importer
  • Author(s): Andrea Corradi
  • Date: 2009-03-30 19:41:43 UTC
  • mfrom: (3.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090330194143-nyr9ze1xola1shm5
Tags: 0.4.91-1
* New upstream release (Closes:  #519014)
* Use Standards-Version 3.8.1
* Add new Build-Depends
* Update Homepage and watch file
* Update debian/copyright
* Remove patch
* Update path in debian/rules
* Remove defs option from LDFLAGS

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
 
2
/*
 
3
 * Copyright (C) 2007 Imendio AB
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 */
 
20
 
 
21
#ifndef __GIGGLE_GIT_DIFF_TREE_H__
 
22
#define __GIGGLE_GIT_DIFF_TREE_H__
 
23
 
 
24
#include <libgiggle/giggle-job.h>
 
25
#include <libgiggle/giggle-revision.h>
 
26
 
 
27
G_BEGIN_DECLS
 
28
 
 
29
#define GIGGLE_TYPE_GIT_DIFF_TREE            (giggle_git_diff_tree_get_type ())
 
30
#define GIGGLE_GIT_DIFF_TREE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_GIT_DIFF_TREE, GiggleGitDiffTree))
 
31
#define GIGGLE_GIT_DIFF_TREE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_GIT_DIFF_TREE, GiggleGitDiffTreeClass))
 
32
#define GIGGLE_IS_GIT_DIFF_TREE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIGGLE_TYPE_GIT_DIFF_TREE))
 
33
#define GIGGLE_IS_GIT_DIFF_TREE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_GIT_DIFF_TREE))
 
34
#define GIGGLE_GIT_DIFF_TREE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_GIT_DIFF_TREE, GiggleGitDiffTreeClass))
 
35
 
 
36
typedef struct GiggleGitDiffTree      GiggleGitDiffTree;
 
37
typedef struct GiggleGitDiffTreeClass GiggleGitDiffTreeClass;
 
38
 
 
39
struct GiggleGitDiffTree {
 
40
        GiggleJob parent;
 
41
};
 
42
 
 
43
struct GiggleGitDiffTreeClass {
 
44
        GiggleJobClass parent_class;
 
45
};
 
46
 
 
47
GType                 giggle_git_diff_tree_get_type   (void);
 
48
GiggleJob *           giggle_git_diff_tree_new        (GiggleRevision *rev1,
 
49
                                                       GiggleRevision *rev2);
 
50
 
 
51
GList *               giggle_git_diff_tree_get_files  (GiggleGitDiffTree *job);
 
52
const char *          giggle_git_diff_tree_get_sha1   (GiggleGitDiffTree *job,
 
53
                                                       const char        *file);
 
54
const char *          giggle_git_diff_tree_get_sha2   (GiggleGitDiffTree *job,
 
55
                                                       const char        *file);
 
56
char                  giggle_git_diff_tree_get_action (GiggleGitDiffTree *job,
 
57
                                                       const char        *file);
 
58
 
 
59
G_END_DECLS
 
60
 
 
61
#endif /* __GIGGLE_GIT_DIFF_TREE_H__ */