Added byline
[anjuta.git] / plugins / sourceview / sourceview-provider.h
blob8a25a27c225bda2acd0b478feda87017bad94e8d
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3 * anjuta
4 * Copyright (C) Johannes Schmid 2009 <jhs@gnome.org>
5 *
6 * anjuta is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * anjuta is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14 * See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef _SOURCEVIEW_PROVIDER_H_
21 #define _SOURCEVIEW_PROVIDER_H_
23 #include <libanjuta/interfaces/ianjuta-provider.h>
24 #include <gtksourceview/gtksource.h>
25 #include "sourceview.h"
27 G_BEGIN_DECLS
29 #define SOURCEVIEW_TYPE_PROVIDER (sourceview_provider_get_type ())
30 #define SOURCEVIEW_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SOURCEVIEW_TYPE_PROVIDER, SourceviewProvider))
31 #define SOURCEVIEW_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SOURCEVIEW_TYPE_PROVIDER, SourceviewProviderClass))
32 #define SOURCEVIEW_IS_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SOURCEVIEW_TYPE_PROVIDER))
33 #define SOURCEVIEW_IS_PROVIDER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SOURCEVIEW_TYPE_PROVIDER))
34 #define SOURCEVIEW_PROVIDER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SOURCEVIEW_TYPE_PROVIDER, SourceviewProviderClass))
36 typedef struct _SourceviewProviderClass SourceviewProviderClass;
37 typedef struct _SourceviewProvider SourceviewProvider;
39 struct _SourceviewProviderClass
41 GObjectClass parent_class;
44 struct _SourceviewProvider
46 GObject parent_instance;
48 Sourceview* sv;
49 IAnjutaProvider* iprov;
50 GtkSourceCompletionContext* context;
51 gboolean cancelled;
54 GType sourceview_provider_get_type (void) G_GNUC_CONST;
56 GtkSourceCompletionProvider* sourceview_provider_new (Sourceview* sv, IAnjutaProvider* iprov);
58 G_END_DECLS
60 #endif /* _SOURCEVIEW_PROVIDER_H_ */