Simple Virtual Machine
A simple but flexible virtual machine
|
This module contains API functions to handle SVM processor flags. More...
Functions | |
SVM_FUNCTION SVM_Boolean | svm_processor_has_flag (const void *svm, const SVM_Kernel kernel, const SVM_Value_String flag) |
This function detects whether a flag is raised in a processor current state, from a string value. More... | |
SVM_FUNCTION SVM_Boolean | svm_processor_has_flag__string (const void *svm, const SVM_Kernel kernel, const SVM_String flag) |
This function detects whether a flag is raised in a processor current state, from a SVM_String. More... | |
SVM_FUNCTION SVM_Boolean | svm_processor_has_flag__raw (const void *svm, const SVM_Kernel kernel, const char *flag) |
This function detects whether a flag is raised in a processor current state, from a C nul-terminated string. More... | |
SVM_FUNCTION SVM_Value_String * | svm_processor_list_flag (const void *svm, const SVM_Kernel kernel) |
This function lists all raised flags in a processor current state. More... | |
SVM_FUNCTION void | svm_processor_set_flag (const void *svm, const SVM_Kernel kernel, const SVM_Value_String flag, const SVM_Object_Level level) |
This function raises a flag in a processor current state, from a string value. More... | |
SVM_FUNCTION void | svm_processor_set_flag__string (const void *svm, const SVM_Kernel kernel, const SVM_String flag, const SVM_Object_Level level) |
This function raises a flag in a processor current state, from a SVM_String. More... | |
SVM_FUNCTION void | svm_processor_set_flag__raw (const void *svm, const SVM_Kernel kernel, const char *flag, const SVM_Object_Level level) |
This function raises a flag in a processor current state, from a C nul-terminated string. More... | |
SVM_FUNCTION void | svm_processor_reset_flag (const void *svm, const SVM_Kernel kernel, const SVM_Value_String flag, const SVM_Object_Level level) |
This function lowers a flag in a processor current state, from a string value. More... | |
SVM_FUNCTION void | svm_processor_reset_flag__string (const void *svm, const SVM_Kernel kernel, const SVM_String flag, const SVM_Object_Level level) |
This function lowers a flag in a processor current state, from a SVM_String. More... | |
SVM_FUNCTION void | svm_processor_reset_flag__raw (const void *svm, const SVM_Kernel kernel, const char *flag, const SVM_Object_Level level) |
This function lowers a flag in a processor current state, from a C nul-terminated string. More... | |
This module contains API functions to handle SVM processor flags.
SVM_FUNCTION SVM_Boolean svm_processor_has_flag | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const SVM_Value_String | flag | ||
) |
This function detects whether a flag is raised in a processor current state, from a string value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to check. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION SVM_Boolean svm_processor_has_flag__raw | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const char * | flag | ||
) |
This function detects whether a flag is raised in a processor current state, from a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to check. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION SVM_Boolean svm_processor_has_flag__string | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const SVM_String | flag | ||
) |
This function detects whether a flag is raised in a processor current state, from a SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to check. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION SVM_Value_String * svm_processor_list_flag | ( | const void * | svm, |
const SVM_Kernel | kernel | ||
) |
This function lists all raised flags in a processor current state.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION void svm_processor_reset_flag | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const SVM_Value_String | flag, | ||
const SVM_Object_Level | level | ||
) |
This function lowers a flag in a processor current state, from a string value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to lower. |
[in] | level | The level of flag. |
This API function does nothing if the flag was already lowered.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION void svm_processor_reset_flag__raw | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const char * | flag, | ||
const SVM_Object_Level | level | ||
) |
This function lowers a flag in a processor current state, from a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to lower. |
[in] | level | The level of flag. |
This API function does nothing if the flag was already lowered.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION void svm_processor_reset_flag__string | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const SVM_String | flag, | ||
const SVM_Object_Level | level | ||
) |
This function lowers a flag in a processor current state, from a SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to lower. |
[in] | level | The level of flag. |
This API function does nothing if the flag was already lowered.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION void svm_processor_set_flag | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const SVM_Value_String | flag, | ||
const SVM_Object_Level | level | ||
) |
This function raises a flag in a processor current state, from a string value.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to raise. |
[in] | level | The level of flag. |
This API function does nothing if the flag was already raised.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION void svm_processor_set_flag__raw | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const char * | flag, | ||
const SVM_Object_Level | level | ||
) |
This function raises a flag in a processor current state, from a C nul-terminated string.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to raise. |
[in] | level | The level of flag. |
This API function does nothing if the flag was already raised.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |
SVM_FUNCTION void svm_processor_set_flag__string | ( | const void * | svm, |
const SVM_Kernel | kernel, | ||
const SVM_String | flag, | ||
const SVM_Object_Level | level | ||
) |
This function raises a flag in a processor current state, from a SVM_String.
[in] | svm | The SVM pointer passed as first argument of the callback function. |
[in] | kernel | The kernel in which the targeted processor is. |
[in] | flag | The flag name to raise. |
[in] | level | The level of flag. |
This API function does nothing if the flag was already raised.
FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
FAILURE | interruption when the kernel is not owned by our process or is not in a process locked by ours. |