/*
 *      ao_openuri.h - this file is part of Addons, a Geany plugin
 *
 *      Copyright 2009-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
 *
 *      This program 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.
 *
 *      This program 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 this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
 *
 * $Id$
 */


#ifndef __AO_OPENURI_H__
#define __AO_OPENURI_H__

G_BEGIN_DECLS

#define AO_OPEN_URI_TYPE				(ao_open_uri_get_type())
#define AO_OPEN_URI(obj)				(G_TYPE_CHECK_INSTANCE_CAST((obj),\
			AO_OPEN_URI_TYPE, AoOpenUri))
#define AO_OPEN_URI_CLASS(klass)		(G_TYPE_CHECK_CLASS_CAST((klass),\
			AO_OPEN_URI_TYPE, AoOpenUriClass))
#define IS_AO_OPEN_URI(obj)			(G_TYPE_CHECK_INSTANCE_TYPE((obj),\
			AO_OPEN_URI_TYPE))
#define IS_AO_OPEN_URI_CLASS(klass)	(G_TYPE_CHECK_CLASS_TYPE((klass),\
			AO_OPEN_URI_TYPE))

typedef struct _AoOpenUri			AoOpenUri;
typedef struct _AoOpenUriClass		AoOpenUriClass;


GType		ao_open_uri_get_type		(void);
AoOpenUri*	ao_open_uri_new				(gboolean enable);
void		ao_open_uri_update_menu		(AoOpenUri *openuri, GeanyDocument *doc, gint pos);

G_END_DECLS

#endif /* __AO_OPENURI_H__ */
