cp_plugin_info_t Struct Reference
Data structures
Collaboration diagram for cp_plugin_info_t:
[legend]

## Data Fields

char * | identifier
| The obligatory unique identifier of the plugin. More...
char * | name
| An optional plug-in name. More...
char * | version
| An optional release version string. More...
char * | provider_name
| An optional provider name. More...
char * | plugin_path
| Path of the plugin directory or NULL if not known. More...
char * | abi_bw_compatibility
| Optional ABI compatibility information. More...
char * | api_bw_compatibility
| Optional API compatibility information. More...
char * | req_cpluff_version
| Optional C-Pluff version requirement. More...
unsigned int | num_imports
| Number of import entries in the imports array. More...
cp_plugin_import_t * | imports
| An array of num_imports import entries. More...
char * | runtime_lib_name
| The base name of the plug-in runtime library, or NULL if none. More...
char * | runtime_funcs_symbol
| The symbol pointing to the plug-in runtime function information or NULL if none. More...
unsigned int | num_ext_points
| Number of extension points in ext_points array. More...
cp_ext_point_t * | ext_points
| An array of num_ext_points extension points provided by this plug-in. More...
unsigned int | num_extensions
| Number of extensions in extensions array. More...
cp_extension_t * | extensions
| An array of num_extensions extensions provided by this plug-in. More...

## Detailed Description

Plug-in information structure captures information about a plug-in. This information can be loaded from a plug-in descriptor using cp_load_plugin_descriptor. Information about installed plug-ins can be obtained using cp_get_plugin_info and cp_get_plugins_info. This structure corresponds to the plugin element in a plug-in descriptor.

## Field Documentation

## identifier

char* identifier

The obligatory unique identifier of the plugin.

A recommended way to generate identifiers is to use domain name service (DNS) prefixes (for example, org.cpluff.ExamplePlugin) to avoid naming conflicts. This corresponds to the id attribute of the plugin element in a plug-in descriptor.

## name

char* name

An optional plug-in name.

NULL if not available. The plug-in name is intended only for display purposes and the value can be localized. This corresponds to the name attribute of the plugin element in a plug-in descriptor.

## version

char* version

An optional release version string.

NULL if not available. This corresponds to the version attribute of the plugin element in a plug-in descriptor.

## provider_name

char* provider_name

An optional provider name.

NULL if not available. This is the name of the author or the organization providing the plug-in. The provider name is intended only for display purposes and the value can be localized. This corresponds to the provider-name attribute of the plugin element in a plug-in descriptor.

## plugin_path

char* plugin_path

Path of the plugin directory or NULL if not known.

This is the (absolute or relative) path to the plug-in directory containing plug-in data and the plug-in runtime library. The value corresponds to the path specified to cp_load_plugin_descriptor when loading the plug-in.

## abi_bw_compatibility

char* abi_bw_compatibility

Optional ABI compatibility information.

NULL if not available. This is the earliest version of the plug-in interface the current interface is backwards compatible with when it comes to the application binary interface (ABI) of the plug-in. That is, plug-in clients compiled against any plug-in interface version from abi_bw_compatibility to version (inclusive) can use the current version of the plug-in binary. This describes binary or runtime compatibility. The value corresponds to the abi-compatibility attribute of the backwards-compatibility element in a plug-in descriptor.

## api_bw_compatibility

char* api_bw_compatibility

Optional API compatibility information.

NULL if not available. This is the earliest version of the plug-in interface the current interface is backwards compatible with when it comes to the application programming interface (API) of the plug-in. That is, plug-in clients written for any plug-in interface version from api_bw_compatibility to version (inclusive) can be compiled against the current version of the plug-in API. This describes source or build time compatibility. The value corresponds to the api-compatibility attribute of the backwards-compatibility element in a plug-in descriptor.

## req_cpluff_version

char* req_cpluff_version

Optional C-Pluff version requirement.

NULL if not available. This is the version of the C-Pluff implementation the plug-in was compiled against. It is used to determine the compatibility of the plug-in runtime and the linked in C-Pluff implementation. Any C-Pluff version that is backwards compatible on binary level with the specified version fulfills the requirement.

## num_imports

unsigned int num_imports

Number of import entries in the imports array.

## imports

cp_plugin_import_t* imports

An array of num_imports import entries.

These correspond to import elements in a plug-in descriptor.

## runtime_lib_name

char* runtime_lib_name

The base name of the plug-in runtime library, or NULL if none.

A platform specific prefix (for example, "lib") and an extension (for example, ".dll" or ".so") may be added to the base name. This corresponds to the library attribute of the runtime element in a plug-in descriptor.

## runtime_funcs_symbol

char* runtime_funcs_symbol

The symbol pointing to the plug-in runtime function information or NULL if none.

The symbol with this name should point to an instance of cp_plugin_runtime_t structure. This corresponds to the funcs attribute of the runtime element in a plug-in descriptor.

## num_ext_points

unsigned int num_ext_points

Number of extension points in ext_points array.

## ext_points

cp_ext_point_t* ext_points

An array of num_ext_points extension points provided by this plug-in.

These correspond to extension-point elements in a plug-in descriptor.

## num_extensions

unsigned int num_extensions

Number of extensions in extensions array.

## extensions

cp_extension_t* extensions

An array of num_extensions extensions provided by this plug-in.

These correspond to extension elements in a plug-in descriptor.

The documentation for this struct was generated from the following file:

- cpluff.h

Generated on Sun May 3 2020 12:13:55 for C-Pluff C API by 1.8.17