gvplugin_installed_t * typeptr);
extern gvplugin_available_t *gvplugin_load(GVC_t * gvc, api_t api, const char *type);
extern gvplugin_library_t *gvplugin_library_load(GVC_t *gvc, char *path);
- extern api_t gvplugin_api(char *str);
+ extern api_t gvplugin_api(const char *str);
extern char * gvplugin_api_name(api_t api);
extern void gvplugin_write_status(GVC_t * gvc);
extern char *gvplugin_list(GVC_t * gvc, api_t api, const char *str);
#undef ELEM
/* translate a string api name to its type, or -1 on error */
-api_t gvplugin_api(char *str)
+api_t gvplugin_api(const char *str)
{
int api;