2006-05-03 23:40:54 -07:00
|
|
|
/*
|
2005-10-13 07:08:18 -07:00
|
|
|
* moolang.h
|
|
|
|
*
|
2006-02-23 06:03:17 -08:00
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2005-10-13 07:08:18 -07:00
|
|
|
*
|
|
|
|
* 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__
|
|
|
|
|
|
|
|
#include <gtk/gtktexttag.h>
|
2005-10-16 22:23:40 -07:00
|
|
|
#include <mooedit/mootextstylescheme.h>
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#define MOO_LANG_DIR_BASENAME "syntax"
|
|
|
|
#define MOO_STYLES_PREFS_PREFIX MOO_EDIT_PREFS_PREFIX "/styles"
|
|
|
|
|
2006-04-16 15:00:51 -07:00
|
|
|
#define MOO_LANG_NONE "none"
|
|
|
|
|
2005-10-13 07:08:18 -07:00
|
|
|
#define MOO_TYPE_LANG (moo_lang_get_type ())
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _MooLang MooLang;
|
|
|
|
|
|
|
|
|
2006-05-03 23:40:54 -07:00
|
|
|
GType moo_lang_get_type (void) G_GNUC_CONST;
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
MooLang *moo_lang_ref (MooLang *lang);
|
|
|
|
void moo_lang_unref (MooLang *lang);
|
|
|
|
|
2006-04-10 00:55:51 -07:00
|
|
|
char *moo_lang_id_from_name (const char *name);
|
2006-05-03 23:40:54 -07:00
|
|
|
/* MOO_LANG_NONE if lang == NULL */
|
2006-04-26 21:04:30 -07:00
|
|
|
const char *moo_lang_id (MooLang *lang);
|
2006-04-10 00:55:51 -07:00
|
|
|
|
2006-05-03 23:40:54 -07:00
|
|
|
/* result of these two must not be modified */
|
|
|
|
GSList *moo_lang_get_extensions (MooLang *lang);
|
|
|
|
GSList *moo_lang_get_mime_types (MooLang *lang);
|
2005-10-13 07:08:18 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __MOO_LANG_H__ */
|