Ignore:
Timestamp:
03/23/11 04:41:29 (2 years ago)
Author:
reyalP
Message:

ptp script communication improvements, see http://chdk.setepontos.com/index.php?topic=4338.msg62725#msg62725
NOTE PTP protocol is updated, old clients will not be completely compatible

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/include/platform.h

    r1024 r1101  
    541541void init_chdk_ptp_task(); 
    542542 
     543typedef struct { 
     544    unsigned size; 
     545    unsigned script_id; // id of script message is to/from  
     546    unsigned type; 
     547    unsigned subtype; 
     548    char data[]; 
     549} ptp_script_msg; 
     550int ptp_script_write_msg(ptp_script_msg *msg); 
     551ptp_script_msg* ptp_script_read_msg(void); 
     552ptp_script_msg* ptp_script_create_msg(unsigned type, unsigned subtype, unsigned datasize, const void *data); 
     553int ptp_script_write_error_msg(unsigned errtype, const char *err); 
     554 
    543555#endif // CAM_CHDK_PTP 
    544556 
Note: See TracChangeset for help on using the changeset viewer.