2006-12-10 05:33:38 +08:00
|
|
|
/* GIMP - The GNU Image Manipulation Program
|
2005-02-21 10:56:29 +08:00
|
|
|
* Copyright (C) 1995 Spencer Kimball and Peter Mattis
|
|
|
|
*
|
|
|
|
* gimpinterpreterdb.h
|
|
|
|
* (C) 2005 Manish Singh <yosh@gimp.org>
|
|
|
|
*
|
2009-01-18 06:28:01 +08:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2005-02-21 10:56:29 +08:00
|
|
|
* it under the terms of the GNU General Public License as published by
|
2009-01-18 06:28:01 +08:00
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2005-02-21 10:56:29 +08:00
|
|
|
* (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
|
2009-01-18 06:28:01 +08:00
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2005-02-21 10:56:29 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GIMP_INTERPRETER_DB_H__
|
|
|
|
#define __GIMP_INTERPRETER_DB_H__
|
|
|
|
|
|
|
|
|
|
|
|
#define GIMP_TYPE_INTERPRETER_DB (gimp_interpreter_db_get_type ())
|
|
|
|
#define GIMP_INTERPRETER_DB(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GIMP_TYPE_INTERPRETER_DB, GimpInterpreterDB))
|
|
|
|
#define GIMP_INTERPRETER_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GIMP_TYPE_INTERPRETER_DB, GimpInterpreterDBClass))
|
|
|
|
#define GIMP_IS_INTERPRETER_DB(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GIMP_TYPE_INTERPRETER_DB))
|
|
|
|
#define GIMP_IS_INTERPRETER_DB_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GIMP_TYPE_INTERPRETER_DB))
|
|
|
|
#define GIMP_INTERPRETER_DB_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GIMP_TYPE_INTERPRETER_DB, GimpInterpreterDBClass))
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GimpInterpreterDBClass GimpInterpreterDBClass;
|
|
|
|
|
|
|
|
struct _GimpInterpreterDB
|
2006-01-17 20:43:50 +08:00
|
|
|
{
|
2005-02-21 10:56:29 +08:00
|
|
|
GObject parent_instance;
|
|
|
|
|
2014-07-15 04:55:53 +08:00
|
|
|
gboolean verbose;
|
|
|
|
|
2005-02-21 10:56:29 +08:00
|
|
|
GHashTable *programs;
|
|
|
|
|
|
|
|
GSList *magics;
|
|
|
|
GHashTable *magic_names;
|
|
|
|
|
|
|
|
GHashTable *extensions;
|
|
|
|
GHashTable *extension_names;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct _GimpInterpreterDBClass
|
2006-01-17 20:43:50 +08:00
|
|
|
{
|
2005-02-21 10:56:29 +08:00
|
|
|
GObjectClass parent_class;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
GType gimp_interpreter_db_get_type (void) G_GNUC_CONST;
|
2014-07-15 04:55:53 +08:00
|
|
|
GimpInterpreterDB * gimp_interpreter_db_new (gboolean verbose);
|
2005-02-21 10:56:29 +08:00
|
|
|
|
|
|
|
void gimp_interpreter_db_load (GimpInterpreterDB *db,
|
2014-07-21 01:24:06 +08:00
|
|
|
GList *path);
|
2005-02-21 10:56:29 +08:00
|
|
|
|
|
|
|
void gimp_interpreter_db_clear (GimpInterpreterDB *db);
|
|
|
|
|
|
|
|
gchar * gimp_interpreter_db_resolve (GimpInterpreterDB *db,
|
|
|
|
const gchar *program_path,
|
|
|
|
gchar **interp_arg);
|
2007-04-18 21:21:20 +08:00
|
|
|
gchar * gimp_interpreter_db_get_extensions (GimpInterpreterDB *db);
|
2005-02-21 10:56:29 +08:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __GIMP_INTERPRETER_DB_H__ */
|