medit/moo/mooedit/moolang.h

50 lines
1.6 KiB
C
Raw Normal View History

/*
* moolang.h
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* 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.
*
* See COPYING file that comes with this distribution.
*/
#ifndef __MOO_LANG_H__
#define __MOO_LANG_H__
2006-08-26 02:46:29 -07:00
#include <glib-object.h>
G_BEGIN_DECLS
2006-08-26 02:46:29 -07: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))
2006-08-26 02:46:29 -07:00
#define MOO_LANG_NONE "none"
#define MOO_LANG_NONE_NAME "None"
typedef struct _MooLang MooLang;
2006-08-26 02:46:29 -07:00
GType moo_lang_get_type (void) G_GNUC_CONST;
2006-08-26 02:46:29 -07:00
/* accepts NULL */
const char *_moo_lang_id (MooLang *lang);
const char *_moo_lang_display_name (MooLang *lang);
2006-08-26 02:46:29 -07: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 00:55:51 -07:00
2006-08-26 02:46:29 -07:00
char *_moo_lang_id_from_name (const char *whatever);
G_END_DECLS
#endif /* __MOO_LANG_H__ */