Changeset 1005
- Timestamp:
- 12/19/10 21:35:37 (2 years ago)
- Location:
- trunk/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/ptp.c
r1000 r1005 117 117 ptp.param2 = PTP_CHDK_VERSION_MINOR; 118 118 break; 119 119 case PTP_CHDK_ScriptSupport: 120 ptp.num_param = 1; 121 ptp.param1 = PTP_CHDK_SCRIPT_SUPPORT_LUA; 122 break; 123 case PTP_CHDK_ScriptStatus: 124 ptp.num_param = 1; 125 ptp.param1 = script_is_running()?PTP_CHDK_SCRIPT_STATUS_RUN:0; 126 break; 120 127 case PTP_CHDK_GetMemory: 121 128 if ( param2 == 0 || param3 < 1 ) // null pointer or invalid size? -
trunk/core/ptp.h
r957 r1005 6 6 7 7 #define PTP_CHDK_VERSION_MAJOR 0 // increase only with backwards incompatible changes (and reset minor) 8 #define PTP_CHDK_VERSION_MINOR 1 // increase with extensions of functionality 8 #define PTP_CHDK_VERSION_MINOR 2 // increase with extensions of functionality 9 /* 10 protocol version history 11 0.1 - initial proposal from mweerden, + luar 12 0.2 - Added ScriptStatus and ScriptSupport, based on work by ultimA 13 */ 9 14 10 15 #define PTP_OC_CHDK 0x9999 … … 34 39 // param2 is language of script 35 40 // param3 is for the ES flags below 41 PTP_CHDK_ScriptStatus, // Script execution status 42 // param1 CHDK_PTP_SCRIPT_STATUS_RUN is set if a script running, cleared if not 43 // all other bits and params are reserved for future use 44 PTP_CHDK_ScriptSupport, // Which scripting interfaces are supported in this build 45 // param1 CHDK_PTP_SUPPORT_LUA is set if lua is supported, cleared if not 46 // all other bits and params are reserved for future use 36 47 } ptp_chdk_command; 37 48 … … 62 73 // and integers) or length (strings) 63 74 64 // Script Languages 75 // Script Languages - for execution 65 76 #define PTP_CHDK_SL_LUA 0 66 77 #define PTP_CHDK_SL_UBASIC 1 67 78 79 // bit flags for script status 80 #define PTP_CHDK_SCRIPT_STATUS_RUN 0x1 81 // bit flags for scripting support 82 #define PTP_CHDK_SCRIPT_SUPPORT_LUA 0x1 83 68 84 #endif // __PTP_H
Note: See TracChangeset
for help on using the changeset viewer.