File: gitg-command.h

package info (click to toggle)
gitg 0.2.7-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,528 kB
  • ctags: 2,943
  • sloc: ansic: 25,963; sh: 11,802; makefile: 371; xml: 364
file content (98 lines) | stat: -rw-r--r-- 4,368 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
/*
 * gitg-command.h
 * This file is part of gitg
 *
 * Copyright (C) 2010 - Jesse van den Kieboom
 *
 * gitg 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.
 *
 * gitg 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 gitg; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, 
 * Boston, MA  02110-1301  USA
 */

#ifndef __GITG_COMMAND_H__
#define __GITG_COMMAND_H__

#include <glib-object.h>
#include <libgitg/gitg-repository.h>

G_BEGIN_DECLS

#define GITG_TYPE_COMMAND		(gitg_command_get_type ())
#define GITG_COMMAND(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMAND, GitgCommand))
#define GITG_COMMAND_CONST(obj)		(G_TYPE_CHECK_INSTANCE_CAST ((obj), GITG_TYPE_COMMAND, GitgCommand const))
#define GITG_COMMAND_CLASS(klass)	(G_TYPE_CHECK_CLASS_CAST ((klass), GITG_TYPE_COMMAND, GitgCommandClass))
#define GITG_IS_COMMAND(obj)		(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GITG_TYPE_COMMAND))
#define GITG_IS_COMMAND_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE ((klass), GITG_TYPE_COMMAND))
#define GITG_COMMAND_GET_CLASS(obj)	(G_TYPE_INSTANCE_GET_CLASS ((obj), GITG_TYPE_COMMAND, GitgCommandClass))

typedef struct _GitgCommand		GitgCommand;
typedef struct _GitgCommandClass	GitgCommandClass;
typedef struct _GitgCommandPrivate	GitgCommandPrivate;

struct _GitgCommand
{
	/*< private >*/
	GInitiallyUnowned parent;

	GitgCommandPrivate *priv;

	/*< public >*/
};

struct _GitgCommandClass
{
	/*< private >*/
	GInitiallyUnownedClass parent_class;

	/*< public >*/
};

GType                gitg_command_get_type              (void) G_GNUC_CONST;

GitgCommand         *gitg_command_new                   (GitgRepository      *repository,
                                                         ...) G_GNUC_NULL_TERMINATED;
GitgCommand         *gitg_command_newv                  (GitgRepository      *repository,
                                                         gchar const * const *arguments);

GitgRepository      *gitg_command_get_repository        (GitgCommand         *command);

GFile               *gitg_command_get_working_directory (GitgCommand         *command);
void                 gitg_command_set_working_directory (GitgCommand         *command,
                                                         GFile               *file);

void                 gitg_command_set_arguments         (GitgCommand         *command,
                                                         ...) G_GNUC_NULL_TERMINATED;
void                 gitg_command_set_argumentsv        (GitgCommand         *command,
                                                         gchar const * const *arguments);
void                 gitg_command_add_arguments         (GitgCommand         *command,
                                                         ...) G_GNUC_NULL_TERMINATED;
void                 gitg_command_add_argumentsv        (GitgCommand         *command,
                                                         gchar const * const *arguments);

gchar const * const *gitg_command_get_arguments         (GitgCommand         *command);

void                 gitg_command_set_environment       (GitgCommand         *command,
                                                         ...) G_GNUC_NULL_TERMINATED;
void                 gitg_command_set_environmentv      (GitgCommand         *command,
                                                         gchar const * const *environment);
void                 gitg_command_add_environment       (GitgCommand         *command,
                                                         ...) G_GNUC_NULL_TERMINATED;
void                 gitg_command_add_environmentv      (GitgCommand         *command,
                                                         gchar const * const *environment);

gchar const * const *gitg_command_get_environment       (GitgCommand         *command);

G_END_DECLS

#endif /* __GITG_COMMAND_H__ */