pict
Documentation for pict is still a work-in-progress
 
Loading...
Searching...
No Matches
cl_enum.h
Go to the documentation of this file.
1
2#ifndef CL_ENUM_H
3#define CL_ENUM_H
4
9
10int ptp_enum_all(char *string);
11int ptp_enum(int type, char *string);
12char *ptp_get_enum(int type, int vendor, int id);
13char *ptp_get_enum_all(int id);
14
15extern char *enum_null;
16
17enum PtpType {
18 PTP_ENUM = 0, // regular enums
19 PTP_OC = 1, // operation codes
20 PTP_OF = 2, // object formats
21 PTP_DPC = 3, // property codes
22 PTP_EC = 4, // event codes
23 PTP_RC = 5, // return code
24 PTP_ST = 6, // storage type
25 PTP_FT = 7, // filesystem type
26 PTP_AC = 8, // access code
27 PTP_AT = 9, // association type
28};
29
30struct PtpEnum {
31 int type;
32 int vendor;
33 char *name;
34 int value;
35};
36
37extern int ptp_enums_length;
38extern struct PtpEnum ptp_enums[];
39
41
42#endif