char *psz_url; /**< A URL to the official page (ro) */
char *psz_description; /**< Full description (ro) */
char *psz_shortdescription; /**< Short description (eg. 1 line) (ro) */
+ char *p_icondata; /**< Embedded data for the icon (ro) */
+ int i_icondata_size; /**< Size of that data */
extension_sys_t *p_sys; /**< Reserved for the manager module */
} extension_t;
lua_getfield( L, -1, "version" );
p_ext->psz_version = luaL_strdupornull( L, -1 );
lua_pop( L, 1 );
+
+ /* Get icon data */
+ lua_getfield( L, -1, "icon" );
+ if( !lua_isnil( L, -1 ) && lua_isstring( L, -1 ) )
+ {
+ int len = lua_strlen( L, -1 );
+ p_ext->p_icondata = malloc( len );
+ if( p_ext->p_icondata )
+ {
+ p_ext->i_icondata_size = len;
+ memcpy( p_ext->p_icondata, lua_tostring( L, -1 ), len );
+ }
+ }
+ lua_pop( L, 1 );
}
else
{