root/trunk/libffado/src/bebob/bebob_configparser.h

Revision 529, 0.6 kB (checked in by wagi, 17 years ago)

- saveCache and loadFromCache interface added to IAvDevice
- current implenetation of saveCache and loadFromCache moved to bebob
- config parser added for loading vendor and model ids from a file instead hardcoded (not finished yet)

Line 
1 #ifndef BEBOB_CONFIGPARSER_H
2 #define BEBOB_CONFIGPARSER_H
3
4 #include <vector>
5
6 namespace BeBoB {
7
8     typedef struct _VendorModelEntry {
9         unsigned int vendor_id;
10         unsigned int model_id;
11         const char* vendor_name;
12         const char* model_name;
13     } VendorModelEntry;
14
15     typedef std::vector<VendorModelEntry*> VendorModelEntryVector;
16
17     class ConfigParser {
18     public:
19         ConfigParser( const char* filename );
20         ~ConfigParser();
21
22         const VendorModelEntryVector& getVendorModelEntries() const;
23     private:
24         VendorModelEntryVector m_vendorModelEntries;
25     };
26
27 }
28
29 #endif
Note: See TracBrowser for help on using the browser.