<cahute/data.h>
– Calculator data resource and methods for Cahute¶
This header declares link-related utilities for Cahute.
Type definitions¶
-
struct cahute_data¶
Main memory data.
-
cahute_data *cahute_data_next¶
Next node in the collection.
Todo
Describe the role of this property.
-
int cahute_data_type¶
Type of the data.
-
union cahute__data_content cahute_data_content¶
Conditional data contents, depending on the data type.
-
struct cahute__data_content_program cahute_data_content_program¶
Data contents, if the type is
CAHUTE_DATA_TYPE_PROGRAM
.-
int cahute_data_content_program_encoding¶
Text encoding used for the program name, password and content, as a
CAHUTE_TEXT_ENCODING_*
constant.
-
size_t cahute_data_content_program_name_size¶
Size of the program name, in bytes.
If this is set to 0,
cahute_data_content_program_name
may beNULL
or undefined.
-
void *cahute_data_content_program_name¶
Program name, in the encoding set in
cahute_data_content_program_encoding
.
-
size_t cahute_data_content_program_password_size¶
Size of the program password, in bytes.
If this is set to 0,
cahute_data_content_program_password
may beNULL
or undefined.
-
void *cahute_data_content_program_password¶
Program password, in the encoding set in
cahute_data_content_program_encoding
.
-
size_t cahute_data_content_program_size¶
Size of the program contents, in bytes.
If this is set to 0,
cahute_data_content_program_content
may beNULL
or undefined.
-
void *cahute_data_content_program_content¶
Program content, in the encoding set in
cahute_data_content_program_encoding
.
-
int cahute_data_content_program_encoding¶
-
struct cahute__data_content_program cahute_data_content_program¶
-
cahute_data *cahute_data_next¶
Function declarations¶
-
void cahute_destroy_data(cahute_data *data)¶
Deallocate data.
- Parameters:
data – Data to deallocate.
- Returns:
The error, or 0 if the operation was successful.