Changeset 1301
- Timestamp:
- 08/21/11 01:24:17 (21 months ago)
- File:
-
- 1 edited
-
trunk/core/ptp.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/ptp.h
r1155 r1301 22 22 23 23 // N.B.: unused parameters should be set to 0 24 enum {24 enum ptp_chdk_command { 25 25 PTP_CHDK_Version = 0, // return param1 is major version number 26 26 // return param2 is minor version number … … 64 64 // input messages do not have type or subtype, they are always a string destined for the script (similar to USER/string) 65 65 // output param1 is ptp_chdk_script_msg_status 66 } ptp_chdk_command;66 }; 67 67 68 68 // data types as used by ReadScriptMessage 69 enum {69 enum ptp_chdk_script_data_type { 70 70 PTP_CHDK_TYPE_UNSUPPORTED = 0, // type name will be returned in data 71 71 PTP_CHDK_TYPE_NIL, … … 76 76 // this function can be overridden in lua to change the format 77 77 // the string may be empty for an empty table 78 } ptp_chdk_script_data_type;78 }; 79 79 80 80 // TempData flags … … 96 96 97 97 // message types 98 enum {98 enum ptp_chdk_script_msg_type { 99 99 PTP_CHDK_S_MSGTYPE_NONE = 0, // no messages waiting 100 100 PTP_CHDK_S_MSGTYPE_ERR, // error message … … 102 102 PTP_CHDK_S_MSGTYPE_USER, // message queued by script 103 103 // TODO chdk console data ? 104 } ptp_chdk_script_msg_type;104 }; 105 105 106 106 // error subtypes for PTP_CHDK_S_MSGTYPE_ERR and script startup status 107 enum {107 enum ptp_chdk_script_error_type { 108 108 PTP_CHDK_S_ERRTYPE_NONE = 0, 109 109 PTP_CHDK_S_ERRTYPE_COMPILE, 110 110 PTP_CHDK_S_ERRTYPE_RUN, 111 } ptp_chdk_script_error_type;111 }; 112 112 113 113 // message status 114 enum {114 enum ptp_chdk_script_msg_status { 115 115 PTP_CHDK_S_MSGSTATUS_OK = 0, // queued ok 116 116 PTP_CHDK_S_MSGSTATUS_NOTRUN, // no script is running 117 117 PTP_CHDK_S_MSGSTATUS_QFULL, // queue is full 118 118 PTP_CHDK_S_MSGSTATUS_BADID, // specified ID is not running 119 } ptp_chdk_script_msg_status;119 }; 120 120 #endif // __CHDK_PTP_H
Note: See TracChangeset
for help on using the changeset viewer.