plugin.c File Reference
#include "common.h"
#include "plugin.h"
#include "gcv_private.h"
#include <string.h>
Include dependency graph for plugin.c:

Go to the source code of this file.

Data Structures

struct  gcv_plugin


void gcv_plugin_register (const struct gcv_plugin_info *plugin_info)
HIDDEN void gcv_plugin_free (struct gcv_plugin *entry)
HIDDEN int gcv_extension_match (const char *path, const char *extension)
const struct gcv_convertergcv_converter_find (const char *path, enum gcv_conversion_type type)

Detailed Description

Loading and registration of GCV conversion plugins.

Definition in file plugin.c.

Function Documentation

void gcv_plugin_register ( const struct gcv_plugin_info plugin_info)

Definition at line 55 of file plugin.c.

References BU_GET, BU_LIST_PUSH, gcv_plugin::l, and gcv_plugin::plugin_info.

Referenced by RegisterPlugin::RegisterPlugin().

HIDDEN void gcv_plugin_free ( struct gcv_plugin entry)

Definition at line 68 of file plugin.c.

References BU_LIST_DEQUEUE, BU_PUT, and gcv_plugin::l.

HIDDEN int gcv_extension_match ( const char *  path,
const char *  extension 

Definition at line 76 of file plugin.c.

References bu_strcasecmp(), bu_strncasecmp(), and strchr().

Referenced by gcv_converter_find().

Here is the call graph for this function:

const struct gcv_converter* gcv_converter_find ( const char *  path,
enum gcv_conversion_type  type 

Definition at line 98 of file plugin.c.

References BU_LIST_FOR, gcv_plugin_info::converters, gcv_converter::file_extensions, GCV_CONVERSION_READ, GCV_CONVERSION_WRITE, gcv_extension_match(), gcv_plugin::plugin_info, gcv_converter::reader_fn, and gcv_converter::writer_fn.

Referenced by gcv_reader(), and gcv_writer().

Here is the call graph for this function: