camlib
Documentation for camlib 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
5#define MAX_ENUM_LENGTH 64
6
11
12int ptp_enum_all(char *string);
13int ptp_enum(int type, char *string);
14char *ptp_get_enum(int type, int vendor, int id);
15char *ptp_get_enum_all(int id);
16
17extern char *enum_null;
18
19enum PtpType {
20 PTP_ENUM = 0, // regular enums
21 PTP_OC = 1, // operation codes
22 PTP_OF = 2, // object formats
23 PTP_DPC = 3, // property codes
24 PTP_EC = 4, // event codes
25 PTP_RC = 5, // return code
26 PTP_ST = 6, // storage type
27 PTP_FT = 7, // filesystem type
28 PTP_AC = 8, // access code
29 PTP_AT = 9, // association type
30};
31
32struct PtpEnum {
33 int type;
34 int vendor;
35 char *name;
36 int value;
37};
38
39extern int ptp_enums_length;
40extern struct PtpEnum ptp_enums[];
41
43
44#endif