* \param[in] type image|text|script|signal|...
* \param[in] part target part to update with given content(data)
* \param[in] data content for specified part
- * \param[in] group script group name
+ * \param[in] option option for the block. (script: group, image: option, ...)
* \return idx Index of current description block
*/
-extern int livebox_desc_add_block(struct livebox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *group);
+extern int livebox_desc_add_block(struct livebox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option);
/*!
* \brief Delete a added block
char *type;
char *part;
char *data;
- char *group;
+ char *option;
char *id;
char *file;
char *target_id;
DbgPrint("data=%s\n", block->data);
}
- if (block->group) {
- fprintf(handle->fp, "group=%s\n", block->group);
- DbgPrint("group=%s\n", block->group);
+ if (block->option) {
+ fprintf(handle->fp, "option=%s\n", block->option);
+ DbgPrint("option=%s\n", block->option);
}
if (block->id) {
free(block->type);
free(block->part);
free(block->data);
- free(block->group);
+ free(block->option);
free(block->id);
free(block->target_id);
free(block);
/*!
* \return idx
*/
-EAPI int livebox_desc_add_block(struct livebox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *group)
+EAPI int livebox_desc_add_block(struct livebox_desc *handle, const char *id, const char *type, const char *part, const char *data, const char *option)
{
struct block *block;
return -ENOMEM;
}
- if (group) {
- block->group = strdup(group);
- if (!block->group) {
+ if (option) {
+ block->option = strdup(option);
+ if (!block->option) {
free(block->data);
free(block->type);
free(block->part);
if (id) {
block->id = strdup(id);
if (!block->id) {
- free(block->group);
+ free(block->option);
free(block->data);
free(block->type);
free(block->part);
free(block->type);
free(block->part);
free(block->data);
- free(block->group);
+ free(block->option);
free(block->id);
free(block->target_id);
free(block);