root/include/remotecap_core.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef REMOTECAP_CORE_H
   2 #define REMOTECAP_CORE_H
   3 #include "remotecap.h"
   4 /*
   5  * remotecap functions not exported to modules
   6  */
   7 // called by ptp to get currently available type and image number
   8 void remotecap_is_ready(int *available_type,int *image_num);
   9 // call from task hooks to notify remotecap of data
  10 void remotecap_raw_available(char *rawadr);
  11 void remotecap_fwt_jpeg_available(void);
  12 void remotecap_fwt_craw_available(void);
  13 // called by ptp code to get next chunk address/size for the format (fmt) that is being currently worked on
  14 int remotecap_get_data_chunk( int fmt, char **addr, unsigned int *size, int *pos );
  15 // called by ptp code to notify remotecap that chunk send is complete
  16 // returns false if ptp call should return an error, otherwise true
  17 int remotecap_send_complete(int rcgd_status,int type);
  18 // sets file_chunks to NULL for DryOS r50+
  19 void remotecap_fwt_chunks_done(void);
  20 // called from filewrite when file is complete and remotecap is enabled, regardless of whether type is target
  21 void remotecap_fwt_file_complete(void);
  22 
  23 // status for remotecap_get_data_chunk
  24 #define REMOTECAP_CHUNK_STATUS_ERROR 0
  25 #define REMOTECAP_CHUNK_STATUS_MORE 1
  26 #define REMOTECAP_CHUNK_STATUS_LAST 2
  27 
  28 // status for filewrite_get_file_chunk
  29 #define REMOTECAP_FWT_CHUNK_STATUS_MORE 1 // more chunks in current session
  30 #define REMOTECAP_FWT_CHUNK_STATUS_LAST 2 // last chunk for all session
  31 #define REMOTECAP_FWT_CHUNK_STATUS_SESS_LAST 3 // last chunk in current session (only for FILEWRITETASK_SEEKS)
  32 
  33 #endif

/* [<][>][^][v][top][bottom][index][help] */