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

« back to all changes in this revision

Viewing changes to src/giggle-git.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_H__
22
 
#define __GIGGLE_GIT_H__
23
 
 
24
 
#include <glib-object.h>
25
 
 
26
 
#include "giggle-job.h"
27
 
#include "giggle-remote.h"
28
 
 
29
 
G_BEGIN_DECLS
30
 
 
31
 
#define GIGGLE_TYPE_GIT            (giggle_git_get_type ())
32
 
#define GIGGLE_GIT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIGGLE_TYPE_GIT, GiggleGit))
33
 
#define GIGGLE_GIT_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GIGGLE_TYPE_GIT, GiggleGitClass))
34
 
#define GIGGLE_IS_GIT(obj)        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIGGLE_TYPE_GIT))
35
 
#define GIGGLE_IS_GIT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIGGLE_TYPE_GIT))
36
 
#define GIGGLE_GIT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GIGGLE_TYPE_GIT, GiggleGitClass))
37
 
 
38
 
typedef struct GiggleGit      GiggleGit;
39
 
typedef struct GiggleGitClass GiggleGitClass;
40
 
 
41
 
struct GiggleGit {
42
 
        GObject parent;
43
 
};
44
 
 
45
 
struct GiggleGitClass {
46
 
        GObjectClass parent_class;
47
 
 
48
 
        void (* changed) (GiggleGit *git);
49
 
};
50
 
 
51
 
typedef void (*GiggleJobDoneCallback)   (GiggleGit *git,
52
 
                                         GiggleJob *job,
53
 
                                         GError    *error,
54
 
                                         gpointer   user_data);
55
 
 
56
 
GType            giggle_git_get_type         (void);
57
 
GiggleGit *      giggle_git_get              (void);
58
 
const gchar *    giggle_git_get_description  (GiggleGit    *git);
59
 
void             giggle_git_write_description(GiggleGit    *git,
60
 
                                              const gchar  *description);
61
 
const gchar *    giggle_git_get_directory    (GiggleGit    *git);
62
 
gboolean         giggle_git_set_directory    (GiggleGit    *git,
63
 
                                              const gchar  *directory,
64
 
                                              GError      **error);
65
 
const gchar *    giggle_git_get_git_dir      (GiggleGit    *git);
66
 
const gchar *    giggle_git_get_project_dir  (GiggleGit    *git);
67
 
const gchar *    giggle_git_get_project_name (GiggleGit    *git);
68
 
GList *          giggle_git_get_remotes      (GiggleGit    *git);
69
 
void             giggle_git_save_remote      (GiggleGit    *git,
70
 
                                              GiggleRemote *remote);
71
 
 
72
 
void             giggle_git_run_job_full     (GiggleGit             *git,
73
 
                                              GiggleJob             *job,
74
 
                                              GiggleJobDoneCallback  callback,
75
 
                                              gpointer               user_data,
76
 
                                              GDestroyNotify         destroy_notify);
77
 
 
78
 
void             giggle_git_run_job          (GiggleGit             *git,
79
 
                                              GiggleJob             *job,
80
 
                                              GiggleJobDoneCallback  callback,
81
 
                                              gpointer               user_data);
82
 
 
83
 
void             giggle_git_cancel_job       (GiggleGit          *git,
84
 
                                              GiggleJob          *job);
85
 
void             giggle_git_changed          (GiggleGit          *git);
86
 
 
87
 
gboolean         giggle_git_test_dir         (gchar const  * dir);
88
 
 
89
 
 
90
 
G_END_DECLS
91
 
 
92
 
#endif /* __GIGGLE_GIT_H__ */