19 lines
800 B
C
19 lines
800 B
C
|
#pragma once
|
||
|
|
||
|
#include "utils.h"
|
||
|
|
||
|
#define MAX_TEMPLATE_ID_LENGTH 64
|
||
|
|
||
|
Result IsTemplateIdentifierValid(const char* template_id, bool* _valid);
|
||
|
Result GetTemplateIdentifierOrder(const char* template_id, uint64_t* _order);
|
||
|
Result GetTemplateIdentifierDescription(const char* template_id, char** _description);
|
||
|
Result CreateTemplateIdentifier(uint64_t order, const char* template_description, char** _template_id);
|
||
|
|
||
|
Result GetTemplatePoolPath(char** _path);
|
||
|
Result GetTemplateDiskPath(const char* template_id, char** _path);
|
||
|
Result DoesTemplateExist(const char* template_id, bool* _exists);
|
||
|
|
||
|
Result AddTemplate(const char* template_id, const char* image_id);
|
||
|
Result RemoveTemplate(const char* template_id);
|
||
|
Result ListTemplates(char*** _template_ids);
|
||
|
Result GetHighestOrderTemplate(char** _template_id);
|