gimpproceduraldb

Name

gimpproceduraldb -- 

Synopsis



gboolean    gimp_procedural_db_proc_info    (gchar *procedure,
                                             gchar **blurb,
                                             gchar **help,
                                             gchar **author,
                                             gchar **copyright,
                                             gchar **date,
                                             GimpPDBProcType *proc_type,
                                             gint *num_args,
                                             gint *num_values,
                                             GimpParamDef **args,
                                             GimpParamDef **return_vals);
gboolean    gimp_procedural_db_get_data     (gchar *identifier,
                                             gpointer data);
gboolean    gimp_procedural_db_set_data     (gchar *identifier,
                                             gpointer data,
                                             guint32 bytes);
gboolean    gimp_procedural_db_dump         (gchar *filename);
gboolean    gimp_procedural_db_query        (gchar *name,
                                             gchar *blurb,
                                             gchar *help,
                                             gchar *author,
                                             gchar *copyright,
                                             gchar *date,
                                             gchar *proc_type,
                                             gint *num_matches,
                                             gchar ***procedure_names);
gboolean    gimp_procedural_db_proc_arg     (gchar *procedure,
                                             gint arg_num,
                                             GimpPDBArgType *arg_type,
                                             gchar **arg_name,
                                             gchar **arg_desc);
gboolean    gimp_procedural_db_proc_val     (gchar *procedure,
                                             gint val_num,
                                             GimpPDBArgType *val_type,
                                             gchar **val_name,
                                             gchar **val_desc);
gint        gimp_procedural_db_get_data_size
                                            (gchar *identifier);

Description

Details

gimp_procedural_db_proc_info ()

gboolean    gimp_procedural_db_proc_info    (gchar *procedure,
                                             gchar **blurb,
                                             gchar **help,
                                             gchar **author,
                                             gchar **copyright,
                                             gchar **date,
                                             GimpPDBProcType *proc_type,
                                             gint *num_args,
                                             gint *num_values,
                                             GimpParamDef **args,
                                             GimpParamDef **return_vals);

Queries the procedural database for information on the specified procedure.

This procedure returns information on the specified procedure. A short blurb, detailed help, author(s), copyright information, procedure type, number of input, and number of return values are returned. Additionally this function returns specific information about each input argument and return value.


gimp_procedural_db_get_data ()

gboolean    gimp_procedural_db_get_data     (gchar *identifier,
                                             gpointer data);

Returns data associated with the specified identifier.

This procedure returns any data which may have been associated with the specified identifier. The data is copied into the given memory location.


gimp_procedural_db_set_data ()

gboolean    gimp_procedural_db_set_data     (gchar *identifier,
                                             gpointer data,
                                             guint32 bytes);

Associates the specified identifier with the supplied data.

This procedure associates the supplied data with the provided identifier. The data may be subsequently retrieved by a call to 'procedural-db-get-data'.


gimp_procedural_db_dump ()

gboolean    gimp_procedural_db_dump         (gchar *filename);

Dumps the current contents of the procedural database

This procedure dumps the contents of the procedural database to the specified file. The file will contain all of the information provided for each registered procedure. This file is in a format appropriate for use with the supplied \"pdb_self_doc.el\" Elisp script, which generates a texinfo document.


gimp_procedural_db_query ()

gboolean    gimp_procedural_db_query        (gchar *name,
                                             gchar *blurb,
                                             gchar *help,
                                             gchar *author,
                                             gchar *copyright,
                                             gchar *date,
                                             gchar *proc_type,
                                             gint *num_matches,
                                             gchar ***procedure_names);

Queries the procedural database for its contents using regular expression matching.

This procedure queries the contents of the procedural database. It is supplied with seven arguments matching procedures on { name, blurb, help, author, copyright, date, procedure type}. This is accomplished using regular expression matching. For instance, to find all procedures with \"jpeg\" listed in the blurb, all seven arguments can be supplied as \".*\", except for the second, which can be supplied as \".*jpeg.*\". There are two return arguments for this procedure. The first is the number of procedures matching the query. The second is a concatenated list of procedure names corresponding to those matching the query. If no matching entries are found, then the returned string is NULL and the number of entries is 0.


gimp_procedural_db_proc_arg ()

gboolean    gimp_procedural_db_proc_arg     (gchar *procedure,
                                             gint arg_num,
                                             GimpPDBArgType *arg_type,
                                             gchar **arg_name,
                                             gchar **arg_desc);

Queries the procedural database for information on the specified procedure's argument.

This procedure returns information on the specified procedure's argument. The argument type, name, and a description are retrieved.


gimp_procedural_db_proc_val ()

gboolean    gimp_procedural_db_proc_val     (gchar *procedure,
                                             gint val_num,
                                             GimpPDBArgType *val_type,
                                             gchar **val_name,
                                             gchar **val_desc);

Queries the procedural database for information on the specified procedure's return value.

This procedure returns information on the specified procedure's return value. The return value type, name, and a description are retrieved.


gimp_procedural_db_get_data_size ()

gint        gimp_procedural_db_get_data_size
                                            (gchar *identifier);

Returns size of data associated with the specified identifier.

This procedure returns the size of any data which may have been associated with the specified identifier. If no data has been associated with the identifier, an error is returned.