-int main(void)
-{
- void *ctx = NULL;
- int rc, errno_value;
- uint32_t attr = DEF_ATTR;
- char *path = NULL;
- struct efi_data *efi_data;
-
- if(!probe())
- return ENOENT;
-
- talloc_new(ctx);
-
- efi_data = talloc_zero(ctx, struct efi_data);
- efi_data->attributes = attr;
- efi_data->data = talloc_strdup(efi_data, test_data);
- efi_data->data_size = strlen(test_data) + 1;
-
- rc = efi_set_variable(test_efivar_guid, test_varname,
- efi_data);