Archived
1
0
This repository has been archived on 2024-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
winamp/Src/Wasabi/api/config/configapi.h

33 lines
1.3 KiB
C
Raw Normal View History

2024-09-24 12:54:57 +00:00
#ifndef __CONFIG_API_H
#define __CONFIG_API_H
#include "../../bfc/api/api_configi.h"
class ConfigApi : public config_apiI {
public:
ConfigApi() {}
virtual ~ConfigApi() {}
virtual void config_registerCfgItem(CfgItem *cfgitem);
virtual void config_deregisterCfgItem(CfgItem *cfgitem);
virtual int config_getNumCfgItems();
virtual CfgItem *config_enumCfgItem(int n);
virtual CfgItem *config_getCfgItemByGuid(GUID g);
virtual void setIntPrivate(const wchar_t *name, int val);
virtual int getIntPrivate(const wchar_t *name, int def_val);
virtual void setIntArrayPrivate(const wchar_t *name, const int *val, int nval);
virtual int getIntArrayPrivate(const wchar_t *name, int *val, int nval);
virtual void setStringPrivate(const wchar_t *name, const wchar_t *str);
virtual int getStringPrivate(const wchar_t *name, wchar_t *buf, int buf_len, const wchar_t *default_str);
virtual int getStringPrivateLen(const wchar_t *name);
virtual void setIntPublic(const wchar_t *name, int val);
virtual int getIntPublic(const wchar_t *name, int def_val);
virtual void setStringPublic(const wchar_t *name, const wchar_t *str);
virtual int getStringPublic(const wchar_t *name, wchar_t *buf, int buf_len, const wchar_t *default_str);
protected:
};
#endif