Simple Virtual Machine
A simple but flexible virtual machine
|
This module contains API functions to handle SVM plugin entry point values. More...
Functions | |
SVM_FUNCTION SVM_Value_PluginEntryPoint | svm_value_pluginentrypoint_new (const void *svm, const SVM_Value_String plugin_name, const SVM_Value_String entry_name) |
This function creates a plugin entry point value the SVM can store in its memories from two string values. More... | |
SVM_FUNCTION SVM_Value_PluginEntryPoint | svm_value_pluginentrypoint_new__string (const void *svm, const SVM_String plugin_name, const SVM_String entry_name) |
This function creates a plugin entry point value the SVM can store in its memories from two SVM_String. More... | |
SVM_FUNCTION SVM_Value_PluginEntryPoint | svm_value_pluginentrypoint_new__raw (const void *svm, const char *plugin_name, const char *entry_name) |
This function creates a plugin entry point value the SVM can store in its memories from two C nul-terminated strings. More... | |
SVM_FUNCTION SVM_Value_PluginEntryPoint | svm_value_pluginentrypoint_new_prefix (const void *svm, const SVM_Value_PluginEntryPoint pep, const char *prefix) |
This function creates a plugin entry point value the SVM can store in its memories from a plugin entry point and a C nul-terminated string. More... | |
SVM_FUNCTION SVM_Value_PluginEntryPoint | svm_value_pluginentrypoint_new_null (const void *svm) |
This function creates a plugin entry point value the SVM can store in its memories without a value. More... | |
SVM_FUNCTION SVM_Boolean | svm_value_type_is_pluginentrypoint (const void *svm, const SVM_Value value) |
This function checks whether a value contains a plugin entry point. More... | |
SVM_FUNCTION SVM_String | svm_value_pluginentrypoint_get_plugin (const void *svm, const SVM_Value_PluginEntryPoint pep) |
This function extracts the plugin name contained in a plugin entry point value. More... | |
SVM_FUNCTION SVM_String | svm_value_pluginentrypoint_get_entry (const void *svm, const SVM_Value_PluginEntryPoint pep) |
This function extracts the entry name contained in a plugin entry point value. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_Value_PluginEntryPoint pluginentrypoint) |
This function replaces the pluginentrypoint value by another pluginentrypoint value. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_plugin (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_Value_String plugin_name) |
This function replaces the plugin name contained in a plugin entry point value from a string value. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_plugin__string (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_String plugin_name) |
This function replaces the plugin name contained in a plugin entry point value from a SVM_String. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_plugin__raw (const void *svm, SVM_Value_PluginEntryPoint value, const char *plugin_name) |
This function replaces the plugin name contained in a plugin entry point value from a C nul-terminated string. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_entry (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_Value_String entry_name, const char *prefix) |
This function replaces the entry name contained in a plugin entry point value from a string value and an optional C nul-terminated string prefix. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_entry__string (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_String entry_name, const char *prefix) |
This function replaces the entry name contained in a plugin entry point value from a SVM_String and an optional C nul-terminated string prefix. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_entry__raw (const void *svm, SVM_Value_PluginEntryPoint value, const char *entry_name, const char *prefix) |
This function replaces the entry name contained in a plugin entry point value from two C nul-terminated strings. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_pluginentry (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_Value_String plugin_name, const SVM_Value_String entry_name, const char *prefix) |
This function replaces the plugin name and the entry name contained in a plugin entry point value from two string values and an optional C nul-terminated string prefix. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_pluginentry__string (const void *svm, SVM_Value_PluginEntryPoint value, const SVM_String plugin_name, const SVM_String entry_name, const char *prefix) |
This function replaces the plugin name and the entry name contained in a plugin entry point value from two SVM_String and an optional C nul-terminated string prefix. More... | |
SVM_FUNCTION void | svm_value_pluginentrypoint_set_pluginentry__raw (const void *svm, SVM_Value_PluginEntryPoint value, const char *plugin_name, const char *entry_name, const char *prefix) |
This function replaces the plugin name and the entry name contained in a plugin entry point value from three C nul-terminated strings. More... | |
This module contains API functions to handle SVM plugin entry point values.
SVM_FUNCTION SVM_String svm_value_pluginentrypoint_get_entry | ( | const void * | svm, |
const SVM_Value_PluginEntryPoint | pep | ||
) |
This function extracts the entry name contained in a plugin entry point value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | pep | The plugin entry point value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the pep parameter does not contain a plugin entry point. |
SVM_FUNCTION SVM_String svm_value_pluginentrypoint_get_plugin | ( | const void * | svm, |
const SVM_Value_PluginEntryPoint | pep | ||
) |
This function extracts the plugin name contained in a plugin entry point value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | pep | The plugin entry point value to extract from. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the pep parameter does not contain a plugin entry point. |
SVM_FUNCTION SVM_Value_PluginEntryPoint svm_value_pluginentrypoint_new | ( | const void * | svm, |
const SVM_Value_String | plugin_name, | ||
const SVM_Value_String | entry_name | ||
) |
This function creates a plugin entry point value the SVM can store in its memories from two string values.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | plugin_name | The name of the plugin containing the plugin object. |
[in] | entry_name | The name of the plugin object within the plugin. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
SVM_FUNCTION SVM_Value_PluginEntryPoint svm_value_pluginentrypoint_new__raw | ( | const void * | svm, |
const char * | plugin_name, | ||
const char * | entry_name | ||
) |
This function creates a plugin entry point value the SVM can store in its memories from two C nul-terminated strings.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | plugin_name | The name of the plugin containing the plugin object. |
[in] | entry_name | The name of the plugin object within the plugin. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
SVM_FUNCTION SVM_Value_PluginEntryPoint svm_value_pluginentrypoint_new__string | ( | const void * | svm, |
const SVM_String | plugin_name, | ||
const SVM_String | entry_name | ||
) |
This function creates a plugin entry point value the SVM can store in its memories from two SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | plugin_name | The name of the plugin containing the plugin object. |
[in] | entry_name | The name of the plugin object within the plugin. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
SVM_FUNCTION SVM_Value_PluginEntryPoint svm_value_pluginentrypoint_new_null | ( | const void * | svm | ) |
This function creates a plugin entry point value the SVM can store in its memories without a value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
SVM_FUNCTION SVM_Value_PluginEntryPoint svm_value_pluginentrypoint_new_prefix | ( | const void * | svm, |
const SVM_Value_PluginEntryPoint | pep, | ||
const char * | prefix | ||
) |
This function creates a plugin entry point value the SVM can store in its memories from a plugin entry point and a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | pep | The plugin entry point to prefix. |
[in] | prefix | The prefix to add to the entry name. |
The plugin entry point "<plugin name>.<entry name>" is transformed into "<plugin name>.<prefix>_<entry name>".
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
SVM_FUNCTION void svm_value_pluginentrypoint_set | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_Value_PluginEntryPoint | pluginentrypoint | ||
) |
This function replaces the pluginentrypoint value by another pluginentrypoint value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | pluginentrypoint | The plugin entry point to use for update. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain an plugin entry point. |
FAILURE | interruption when the pluginentrypoint parameter does not contain an plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_entry | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_Value_String | entry_name, | ||
const char * | prefix | ||
) |
This function replaces the entry name contained in a plugin entry point value from a string value and an optional C nul-terminated string prefix.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | entry_name | The new entry name. |
[in] | prefix | An optional prefix. The prefix is ignored when it is a null pointer. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_entry__raw | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const char * | entry_name, | ||
const char * | prefix | ||
) |
This function replaces the entry name contained in a plugin entry point value from two C nul-terminated strings.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | entry_name | The new entry name. |
[in] | prefix | An optional prefix. The prefix is ignored when it is a null pointer. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_entry__string | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_String | entry_name, | ||
const char * | prefix | ||
) |
This function replaces the entry name contained in a plugin entry point value from a SVM_String and an optional C nul-terminated string prefix.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | entry_name | The new entry name. |
[in] | prefix | An optional prefix. The prefix is ignored when it is a null pointer. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_plugin | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_Value_String | plugin_name | ||
) |
This function replaces the plugin name contained in a plugin entry point value from a string value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | plugin_name | The new plugin name. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_plugin__raw | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const char * | plugin_name | ||
) |
This function replaces the plugin name contained in a plugin entry point value from a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | plugin_name | The new plugin name. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_plugin__string | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_String | plugin_name | ||
) |
This function replaces the plugin name contained in a plugin entry point value from a SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | plugin_name | The new plugin name. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_pluginentry | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_Value_String | plugin_name, | ||
const SVM_Value_String | entry_name, | ||
const char * | prefix | ||
) |
This function replaces the plugin name and the entry name contained in a plugin entry point value from two string values and an optional C nul-terminated string prefix.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | plugin_name | The new plugin name. |
[in] | entry_name | The new entry name. |
[in] | prefix | An optional prefix. The prefix is ignored when it is a null pointer. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_pluginentry__raw | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const char * | plugin_name, | ||
const char * | entry_name, | ||
const char * | prefix | ||
) |
This function replaces the plugin name and the entry name contained in a plugin entry point value from three C nul-terminated strings.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | plugin_name | The new plugin name. |
[in] | entry_name | The new entry name. |
[in] | prefix | An optional prefix. The prefix is ignored when it is a null pointer. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION void svm_value_pluginentrypoint_set_pluginentry__string | ( | const void * | svm, |
SVM_Value_PluginEntryPoint | value, | ||
const SVM_String | plugin_name, | ||
const SVM_String | entry_name, | ||
const char * | prefix | ||
) |
This function replaces the plugin name and the entry name contained in a plugin entry point value from two SVM_String and an optional C nul-terminated string prefix.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in,out] | value | The plugin entry point value to update. |
[in] | plugin_name | The new plugin name. |
[in] | entry_name | The new entry name. |
[in] | prefix | An optional prefix. The prefix is ignored when it is a null pointer. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the value parameter does not contain a plugin entry point. |
FAILURE | interruption when the value is a constant. |
SVM_FUNCTION SVM_Boolean svm_value_type_is_pluginentrypoint | ( | const void * | svm, |
const SVM_Value | value | ||
) |
This function checks whether a value contains a plugin entry point.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | value | The value to be diagnosed. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |