|
Simple Virtual Machine
A simple but flexible virtual machine
|
This module contains API functions to handle SVM debugger forms. More...
Functions | |
| SVM_FUNCTION SVM_Debug_Form | svm_debug_form_new (const void *svm, const char *title) |
| This function creates a debugger form. More... | |
| SVM_FUNCTION void | svm_debug_form_append_checkbox (const void *svm, SVM_Debug_Form form, const char *label, const SVM_Value_Boolean default_value) |
| This function appends to a debugger form a checkbox field. More... | |
| SVM_FUNCTION void | svm_debug_form_append_checkbox__raw (const void *svm, SVM_Debug_Form form, const char *label, const int default_value) |
| This function appends to a debugger form a checkbox field. More... | |
| SVM_FUNCTION void | svm_debug_form_append_selection (const void *svm, SVM_Debug_Form form, const char *label, const SVM_Size size, const SVM_Value *values) |
| This function appends to a debugger form a list of selection field. More... | |
| SVM_FUNCTION void | svm_debug_form_append_integer (const void *svm, SVM_Debug_Form form, const char *label, const SVM_Value_Integer default_value, const long long int min_value, const long long int max_value) |
| This function appends to a debugger form an input field accepting integers. More... | |
| SVM_FUNCTION void | svm_debug_form_append_integer__raw (const void *svm, SVM_Debug_Form form, const char *label, const long long int default_value, const long long int min_value, const long long int max_value) |
| This function appends to a debugger form an input field accepting integers. More... | |
| SVM_FUNCTION void | svm_debug_form_append_string (const void *svm, SVM_Debug_Form form, const char *label, const SVM_Value_String default_value, const SVM_Size min_size, const SVM_Size max_size) |
| This function appends to a debugger form an input field accepting strings. More... | |
| SVM_FUNCTION void | svm_debug_form_append_string__string (const void *svm, SVM_Debug_Form form, const char *label, const SVM_String default_value, const SVM_Size min_size, const SVM_Size max_size) |
| This function appends to a debugger form an input field accepting strings. More... | |
| SVM_FUNCTION void | svm_debug_form_append_string__raw (const void *svm, SVM_Debug_Form form, const char *label, const char *default_value, const SVM_Size min_size, const SVM_Size max_size) |
| This function appends to a debugger form an input field accepting strings. More... | |
| SVM_FUNCTION void | svm_debug_form_append_text (const void *svm, SVM_Debug_Form form, const char *label, const SVM_Size width, const SVM_Size height) |
| This function appends to a debugger form an input field accepting long multi-line strings. More... | |
| SVM_FUNCTION SVM_Value * | svm_debug_form_request (const void *svm, const SVM_Debug_Form form) |
| This function sends the form to the debugger user interface, and waits for the form submission. More... | |
This module contains API functions to handle SVM debugger forms.
| SVM_FUNCTION void svm_debug_form_append_checkbox | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const SVM_Value_Boolean | default_value | ||
| ) |
This function appends to a debugger form a checkbox field.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial state of the field value. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_checkbox__raw | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const int | default_value | ||
| ) |
This function appends to a debugger form a checkbox field.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial state of the field value. |
The default value can also be a SVM_Boolean.
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_integer | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const SVM_Value_Integer | default_value, | ||
| const long long int | min_value, | ||
| const long long int | max_value | ||
| ) |
This function appends to a debugger form an input field accepting integers.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial value of the field value. |
| [in] | min_value | The minimal value to be accepted in the form. |
| [in] | max_value | The maximal value to be accepted in the form. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_integer__raw | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const long long int | default_value, | ||
| const long long int | min_value, | ||
| const long long int | max_value | ||
| ) |
This function appends to a debugger form an input field accepting integers.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial value of the field value. |
| [in] | min_value | The minimal value to be accepted in the form. |
| [in] | max_value | The maximal value to be accepted in the form. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_selection | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const SVM_Size | size, | ||
| const SVM_Value * | values | ||
| ) |
This function appends to a debugger form a list of selection field.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | size | The number of enumerated values. |
| [in] | values | The enumerated values. |
The default value is the first one in the array.
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_string | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const SVM_Value_String | default_value, | ||
| const SVM_Size | min_size, | ||
| const SVM_Size | max_size | ||
| ) |
This function appends to a debugger form an input field accepting strings.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial value of the field value. |
| [in] | min_size | The minimal value to be accepted in the form. |
| [in] | max_size | The maximal value to be accepted in the form. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_string__raw | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const char * | default_value, | ||
| const SVM_Size | min_size, | ||
| const SVM_Size | max_size | ||
| ) |
This function appends to a debugger form an input field accepting strings.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial value of the field value. |
| [in] | min_size | The minimal value to be accepted in the form. |
| [in] | max_size | The maximal value to be accepted in the form. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_string__string | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const SVM_String | default_value, | ||
| const SVM_Size | min_size, | ||
| const SVM_Size | max_size | ||
| ) |
This function appends to a debugger form an input field accepting strings.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | default_value | The initial value of the field value. |
| [in] | min_size | The minimal value to be accepted in the form. |
| [in] | max_size | The maximal value to be accepted in the form. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION void svm_debug_form_append_text | ( | const void * | svm, |
| SVM_Debug_Form | form, | ||
| const char * | label, | ||
| const SVM_Size | width, | ||
| const SVM_Size | height | ||
| ) |
This function appends to a debugger form an input field accepting long multi-line strings.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in,out] | form | The debugger form to update. |
| [in] | label | The field label of this value. |
| [in] | width | The field width, in number of characters. |
| [in] | height | The field height, in number of characters. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION SVM_Debug_Form svm_debug_form_new | ( | const void * | svm, |
| const char * | title | ||
| ) |
This function creates a debugger form.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in] | title | The form title. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |
| SVM_FUNCTION SVM_Value * svm_debug_form_request | ( | const void * | svm, |
| const SVM_Debug_Form | form | ||
| ) |
This function sends the form to the debugger user interface, and waits for the form submission.
| [in] | svm | The SVM pointer passed as first argument of the callback function. |
| [in] | form | The debugger form to send. |
| FAILURE | interruption when a parameter is incorrect. (Please refer to the main description page of this API.) |