2006-05-04 01:40:54 -05:00
|
|
|
/*
|
2005-10-13 14:08:18 +00:00
|
|
|
* moolang.h
|
|
|
|
*
|
2007-06-24 12:56:20 -05:00
|
|
|
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-10-13 14:08:18 +00:00
|
|
|
*
|
2007-06-24 12:56:20 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
2007-09-23 11:47:28 -05:00
|
|
|
* License version 2.1 as published by the Free Software Foundation.
|
2005-10-13 14:08:18 +00:00
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#ifndef MOO_LANG_H
|
|
|
|
#define MOO_LANG_H
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
#include <glib-object.h>
|
2005-10-13 14:08:18 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
#define MOO_TYPE_LANG (moo_lang_get_type ())
|
|
|
|
#define MOO_LANG(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_LANG, MooLang))
|
|
|
|
#define MOO_IS_LANG(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_LANG))
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
#define MOO_LANG_NONE "none"
|
|
|
|
#define MOO_LANG_NONE_NAME "None"
|
2005-10-13 14:08:18 +00:00
|
|
|
|
|
|
|
typedef struct _MooLang MooLang;
|
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
GType moo_lang_get_type (void) G_GNUC_CONST;
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
/* accepts NULL */
|
|
|
|
const char *_moo_lang_id (MooLang *lang);
|
|
|
|
const char *_moo_lang_display_name (MooLang *lang);
|
2005-10-13 14:08:18 +00:00
|
|
|
|
2006-11-09 04:59:35 -06:00
|
|
|
/* result must be freed together with content */
|
|
|
|
GSList *_moo_lang_get_globs (MooLang *lang);
|
|
|
|
/* result must be freed together with content */
|
|
|
|
GSList *_moo_lang_get_mime_types (MooLang *lang);
|
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
const char *_moo_lang_get_line_comment (MooLang *lang);
|
|
|
|
const char *_moo_lang_get_block_comment_start (MooLang *lang);
|
|
|
|
const char *_moo_lang_get_block_comment_end (MooLang *lang);
|
|
|
|
const char *_moo_lang_get_brackets (MooLang *lang);
|
|
|
|
const char *_moo_lang_get_section (MooLang *lang);
|
|
|
|
gboolean _moo_lang_get_hidden (MooLang *lang);
|
2006-04-10 02:55:51 -05:00
|
|
|
|
2006-08-26 04:46:29 -05:00
|
|
|
char *_moo_lang_id_from_name (const char *whatever);
|
2006-11-09 04:59:35 -06:00
|
|
|
GSList *_moo_lang_parse_string_list (const char *string);
|
2005-10-13 14:08:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 04:06:03 -05:00
|
|
|
#endif /* MOO_LANG_H */
|