# CDPPlugin.h

## Macro Definitions

| `CDP_RET_SUCCESS`
| `CDP_RET_FAIL`
| `CDP_PLUGIN_EXPORT`

## Types

| CDP_RegisterProviderParams
| CDP_FrameworkServices

## Type Aliases

void(* | `CDP_DestroyProviderFactoryFunc`
int(* | `CDP_RegisterProviderFunc`
void(* | `CDP_LogFunc`
void(* | `CDP_SetPluginInfoFunc`
void(* | `CDP_PluginExitFunc`
CDP_PluginExitFunc(* | `CDP_PluginInitFunc`

## Functions

CDP_PluginExitFunc | `initializeDataProviderPlugin`

## Detailed Description

## Macro Definition

`CDP_RET_SUCCESS`

`CDP_RET_FAIL`

`CDP_PLUGIN_EXPORT`

## Type Alias Documentation

typedef void (*`CDP_DestroyProviderFactoryFunc`)(CDPDataProviderFactory *objPtr)

  Type definition of function pointer for deleting instances of CDPDataProviderFactory.

typedef int (*`CDP_RegisterProviderFunc`)(const char *providerIdString, const CDP_RegisterProviderParams *params)

  Type definition of the function pointer for registering data providers with the plugin manager.

typedef void (*`CDP_LogFunc`)(int level, const char *message)

  Type definition of log function provided by the framework Log levels are 1=error, 2=warning, 3=info, 4=debug.

typedef void (*`CDP_SetPluginInfoFunc`)(const char *key, const char *value)

  Type definition of function provided by the framework for setting plugin information in the form of key, value pairs.

typedef void (*`CDP_PluginExitFunc`)()

typedef CDP_PluginExitFunc (*`CDP_PluginInitFunc`)(const CDP_FrameworkServices *frameworkServices)

  Type definition definition of the plugin initialization function pointer (used by plugin manager to initialize plugins) Note that the return type is the CDP_PluginExitFunc (used by plugin manager to tell plugins to cleanup).

  If initialization failed for any reason, it must return NULL to let the plugin manger know that the plugin wasn’t initialized properly. The plugin should use the framework services to register the data providers it exports as well as communicating log messages.

## Function Documentation

CDP_PluginExitFunc `initializeDataProviderPlugin`(const CDP_FrameworkServices *params)

  Named exported entry point into the plugin This definition is required even though the function is loaded from a dynamic library by name and cast to CDP_PluginInitFunc If this declaration is commented out DynamicLibrary::getSymbol() fails The plugin’s initialization function MUST be called “initializeDataProviderPlugin” and conform to the CDP_PluginInitFunc signature.

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Envision for Desktop or choose a sample question below to start a conversation:

What is HOOPS Envision for Desktop?
What are the latest release notes for HOOPS Envision for Desktop?
How do I start evaluating HOOPS Envision for Desktop?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...