/* gca-symbol-browser-support.c generated by valac 0.27.1, the Vala compiler
 * generated from gca-symbol-browser-support.vala, do not modify */

/*
 * This file is part of gedit-code-assistant.
 *
 * Copyright (C) 2011 - Jesse van den Kieboom
 *
 * gedit-code-assistant 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 3 of the License, or
 * (at your option) any later version.
 *
 * gedit-code-assistant 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 gedit-code-assistant.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <glib.h>
#include <glib-object.h>
#include <gtk/gtk.h>


#define GCA_TYPE_DOCUMENT (gca_document_get_type ())
#define GCA_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCA_TYPE_DOCUMENT, GcaDocument))
#define GCA_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCA_TYPE_DOCUMENT, GcaDocumentClass))
#define GCA_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCA_TYPE_DOCUMENT))
#define GCA_IS_DOCUMENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCA_TYPE_DOCUMENT))
#define GCA_DOCUMENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCA_TYPE_DOCUMENT, GcaDocumentClass))

typedef struct _GcaDocument GcaDocument;
typedef struct _GcaDocumentClass GcaDocumentClass;

#define GCA_TYPE_SYMBOL_BROWSER_SUPPORT (gca_symbol_browser_support_get_type ())
#define GCA_SYMBOL_BROWSER_SUPPORT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCA_TYPE_SYMBOL_BROWSER_SUPPORT, GcaSymbolBrowserSupport))
#define GCA_IS_SYMBOL_BROWSER_SUPPORT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCA_TYPE_SYMBOL_BROWSER_SUPPORT))
#define GCA_SYMBOL_BROWSER_SUPPORT_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GCA_TYPE_SYMBOL_BROWSER_SUPPORT, GcaSymbolBrowserSupportIface))

typedef struct _GcaSymbolBrowserSupport GcaSymbolBrowserSupport;
typedef struct _GcaSymbolBrowserSupportIface GcaSymbolBrowserSupportIface;

#define GCA_TYPE_SYMBOL_BROWSER (gca_symbol_browser_get_type ())
#define GCA_SYMBOL_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowser))
#define GCA_SYMBOL_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowserClass))
#define GCA_IS_SYMBOL_BROWSER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCA_TYPE_SYMBOL_BROWSER))
#define GCA_IS_SYMBOL_BROWSER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCA_TYPE_SYMBOL_BROWSER))
#define GCA_SYMBOL_BROWSER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCA_TYPE_SYMBOL_BROWSER, GcaSymbolBrowserClass))

typedef struct _GcaSymbolBrowser GcaSymbolBrowser;
typedef struct _GcaSymbolBrowserClass GcaSymbolBrowserClass;

struct _GcaSymbolBrowserSupportIface {
	GTypeInterface parent_iface;
	GcaSymbolBrowser* (*get_symbol_browser) (GcaSymbolBrowserSupport* self);
};



GType gca_document_get_type (void) G_GNUC_CONST;
GType gca_symbol_browser_get_type (void) G_GNUC_CONST;
GType gca_symbol_browser_support_get_type (void) G_GNUC_CONST;
GcaSymbolBrowser* gca_symbol_browser_support_get_symbol_browser (GcaSymbolBrowserSupport* self);


GcaSymbolBrowser* gca_symbol_browser_support_get_symbol_browser (GcaSymbolBrowserSupport* self) {
	g_return_val_if_fail (self != NULL, NULL);
	return GCA_SYMBOL_BROWSER_SUPPORT_GET_INTERFACE (self)->get_symbol_browser (self);
}


static void gca_symbol_browser_support_base_init (GcaSymbolBrowserSupportIface * iface) {
	static gboolean initialized = FALSE;
	if (!initialized) {
		initialized = TRUE;
		/**
		 * Get symbol browser
		 *
		 * Get the symbol browser for the document
		 *
		 */
		g_object_interface_install_property (iface, g_param_spec_object ("symbol-browser", "symbol-browser", "symbol-browser", GCA_TYPE_SYMBOL_BROWSER, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
	}
}


/**
 * Interface for documents supporting symbol browsing
 *
 * This interface is implemented on a Gca.Document when it supports symbol
 * browsing.
 *
 */
GType gca_symbol_browser_support_get_type (void) {
	static volatile gsize gca_symbol_browser_support_type_id__volatile = 0;
	if (g_once_init_enter (&gca_symbol_browser_support_type_id__volatile)) {
		static const GTypeInfo g_define_type_info = { sizeof (GcaSymbolBrowserSupportIface), (GBaseInitFunc) gca_symbol_browser_support_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
		GType gca_symbol_browser_support_type_id;
		gca_symbol_browser_support_type_id = g_type_register_static (G_TYPE_INTERFACE, "GcaSymbolBrowserSupport", &g_define_type_info, 0);
		g_type_interface_add_prerequisite (gca_symbol_browser_support_type_id, GCA_TYPE_DOCUMENT);
		g_once_init_leave (&gca_symbol_browser_support_type_id__volatile, gca_symbol_browser_support_type_id);
	}
	return gca_symbol_browser_support_type_id__volatile;
}



