2006-07-27 12:39:53 -07:00
|
|
|
/*
|
|
|
|
* mooeditfiltersettings.h
|
|
|
|
*
|
2007-06-24 10:56:20 -07:00
|
|
|
* Copyright (C) 2004-2007 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
2006-07-27 12:39:53 -07:00
|
|
|
*
|
2007-06-24 10:56:20 -07: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 09:47:28 -07:00
|
|
|
* License version 2.1 as published by the Free Software Foundation.
|
2006-07-27 12:39:53 -07:00
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef MOOEDIT_COMPILATION
|
|
|
|
#error "This file may not be used"
|
|
|
|
#endif
|
|
|
|
|
2007-06-10 02:06:03 -07:00
|
|
|
#ifndef MOO_EDIT_FILTER_SETTINGS_H
|
|
|
|
#define MOO_EDIT_FILTER_SETTINGS_H
|
2006-07-27 12:39:53 -07:00
|
|
|
|
2007-09-02 13:42:17 -07:00
|
|
|
#include <mooedit/mooedit.h>
|
2006-07-27 12:39:53 -07:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
2007-09-02 13:42:17 -07:00
|
|
|
typedef struct _MooEditFilter MooEditFilter;
|
2006-07-27 12:39:53 -07:00
|
|
|
|
2007-09-02 13:42:17 -07:00
|
|
|
MooEditFilter *_moo_edit_filter_new (const char *string);
|
|
|
|
MooEditFilter *_moo_edit_filter_new_langs (const char *string);
|
|
|
|
MooEditFilter *_moo_edit_filter_new_regex (const char *string);
|
|
|
|
MooEditFilter *_moo_edit_filter_new_globs (const char *string);
|
|
|
|
void _moo_edit_filter_free (MooEditFilter *filter);
|
|
|
|
gboolean _moo_edit_filter_match (MooEditFilter *filter,
|
|
|
|
MooEdit *doc);
|
2006-07-27 12:39:53 -07:00
|
|
|
|
2007-09-02 13:42:17 -07:00
|
|
|
void _moo_edit_filter_settings_load (void);
|
|
|
|
|
|
|
|
GSList *_moo_edit_filter_settings_get_strings (void);
|
|
|
|
void _moo_edit_filter_settings_set_strings (GSList *strings);
|
|
|
|
|
|
|
|
char *_moo_edit_filter_settings_get_for_file (const char *filename);
|
2006-07-27 12:39:53 -07:00
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
2007-06-10 02:06:03 -07:00
|
|
|
#endif /* MOO_EDIT_FILTER_SETTINGS_H */
|