Lines Matching refs:params
54 /* params may be of any type of size less or equal to uint32_t */
97 } params;
393 #define PTP_OC_NIKON_AfDrive 0x90C1 /* no params, no data */
395 #define PTP_OC_NIKON_DelImageSDRAM 0x90C3 /* no params, no data */
399 #define PTP_OC_NIKON_CheckEvent 0x90C7 /* no params, data in */
400 #define PTP_OC_NIKON_DeviceReady 0x90C8 /* no params, no data */
401 #define PTP_OC_NIKON_SetPreWBData 0x90C9 /* 3 params, data out */
402 #define PTP_OC_NIKON_GetVendorPropCodes 0x90CA /* 0 params, data in */
403 #define PTP_OC_NIKON_AfCaptureSDRAM 0x90CB /* no params, no data */
1847 typedef uint16_t (* PTPDataGetFunc) (PTPParams* params, void*priv,
1851 typedef uint16_t (* PTPDataPutFunc) (PTPParams* params, void*priv,
1864 typedef uint16_t (* PTPIOSendReq) (PTPParams* params, PTPContainer* req);
1865 typedef uint16_t (* PTPIOSendData) (PTPParams* params, PTPContainer* ptp,
1868 typedef uint16_t (* PTPIOGetResp) (PTPParams* params, PTPContainer* resp);
1869 typedef uint16_t (* PTPIOGetData) (PTPParams* params, PTPContainer* ptp,
1871 typedef uint16_t (* PTPIOCancelReq) (PTPParams* params, uint32_t transaction_id);
1979 uint16_t ptp_usb_sendreq (PTPParams* params, PTPContainer* req);
1980 uint16_t ptp_usb_senddata (PTPParams* params, PTPContainer* ptp,
1982 uint16_t ptp_usb_getresp (PTPParams* params, PTPContainer* resp);
1983 uint16_t ptp_usb_getdata (PTPParams* params, PTPContainer* ptp,
1985 uint16_t ptp_usb_event_check (PTPParams* params, PTPContainer* event);
1986 uint16_t ptp_usb_event_wait (PTPParams* params, PTPContainer* event);
1988 uint16_t ptp_usb_control_get_extended_event_data (PTPParams *params, char *buffer, int *size);
1989 uint16_t ptp_usb_control_device_reset_request (PTPParams *params);
1990 uint16_t ptp_usb_control_get_device_status (PTPParams *params, char *buffer, int *size);
1991 uint16_t ptp_usb_control_cancel_request (PTPParams *params, uint32_t transid);
1994 int ptp_ptpip_connect (PTPParams* params, const char *port);
1995 uint16_t ptp_ptpip_sendreq (PTPParams* params, PTPContainer* req);
1996 uint16_t ptp_ptpip_senddata (PTPParams* params, PTPContainer* ptp,
1998 uint16_t ptp_ptpip_getresp (PTPParams* params, PTPContainer* resp);
1999 uint16_t ptp_ptpip_getdata (PTPParams* params, PTPContainer* ptp,
2001 uint16_t ptp_ptpip_event_wait (PTPParams* params, PTPContainer* event);
2002 uint16_t ptp_ptpip_event_check (PTPParams* params, PTPContainer* event);
2004 uint16_t ptp_getdeviceinfo (PTPParams* params, PTPDeviceInfo* deviceinfo);
2006 uint16_t ptp_generic_no_data (PTPParams* params, uint16_t opcode, unsigned int cnt, ...);
2008 uint16_t ptp_opensession (PTPParams *params, uint32_t session);
2012 * params: PTPParams*
2018 #define ptp_closesession(params) ptp_generic_no_data(params,PTP_OC_CloseSession,0)
2021 * params: PTPParams*
2028 #define ptp_resetdevice(params) ptp_generic_no_data(params,PTP_OC_ResetDevice,0)
2030 uint16_t ptp_getstorageids (PTPParams* params, PTPStorageIDs* storageids);
2031 uint16_t ptp_getstorageinfo (PTPParams* params, uint32_t storageid,
2035 * params: PTPParams*
2042 #define ptp_formatstore(params,storageid) ptp_generic_no_data(params,PTP_OC_FormatStore,1,storageid)
2044 uint16_t ptp_getobjecthandles (PTPParams* params, uint32_t storage,
2049 uint16_t ptp_getnumobjects (PTPParams* params, uint32_t storage,
2054 uint16_t ptp_getobjectinfo (PTPParams *params, uint32_t handle,
2057 uint16_t ptp_getobject (PTPParams *params, uint32_t handle,
2059 uint16_t ptp_getobject_tofd (PTPParams* params, uint32_t handle, int fd);
2060 uint16_t ptp_getobject_to_handler (PTPParams* params, uint32_t handle, PTPDataHandler*);
2061 uint16_t ptp_getpartialobject (PTPParams* params, uint32_t handle, uint32_t offset,
2063 uint16_t ptp_getthumb (PTPParams *params, uint32_t handle,
2066 uint16_t ptp_deleteobject (PTPParams* params, uint32_t handle,
2069 uint16_t ptp_sendobjectinfo (PTPParams* params, uint32_t* store,
2074 * params: PTPParams*
2082 #define ptp_setobjectprotection(params,oid,newprot) ptp_generic_no_data(params,PTP_OC_SetObjectProtection,2,oid,newprot)
2083 uint16_t ptp_sendobject (PTPParams* params, unsigned char* object,
2085 uint16_t ptp_sendobject_fromfd (PTPParams* params, int fd, uint32_t size);
2086 uint16_t ptp_sendobject_from_handler (PTPParams* params, PTPDataHandler*, uint32_t size);
2089 * params: PTPParams*
2101 #define ptp_initiatecapture(params,storageid,ofc) ptp_generic_no_data(params,PTP_OC_InitiateCapture,2,storageid,ofc)
2103 uint16_t ptp_getdevicepropdesc (PTPParams* params, uint16_t propcode,
2105 uint16_t ptp_getdevicepropvalue (PTPParams* params, uint16_t propcode,
2107 uint16_t ptp_setdevicepropvalue (PTPParams* params, uint16_t propcode,
2111 uint16_t ptp_check_event (PTPParams *params);
2112 int ptp_get_one_event (PTPParams *params, PTPContainer *evt);
2115 uint16_t ptp_mtp_getobjectpropdesc (PTPParams* params, uint16_t opc, uint16_t ofc,
2117 uint16_t ptp_mtp_getobjectpropvalue (PTPParams* params, uint32_t oid, uint16_t opc,
2119 uint16_t ptp_mtp_setobjectpropvalue (PTPParams* params, uint32_t oid, uint16_t opc,
2121 uint16_t ptp_mtp_getobjectreferences (PTPParams* params, uint32_t handle, uint32_t** ohArray, uint32_t* arraylen);
2122 uint16_t ptp_mtp_setobjectreferences (PTPParams* params, uint32_t handle, uint32_t* ohArray, uint32_t arraylen);
2123 uint16_t ptp_mtp_getobjectproplist (PTPParams* params, uint32_t handle, MTPProperties **props, int *nrofprops);
2124 uint16_t ptp_mtp_sendobjectproplist (PTPParams* params, uint32_t* store, uint32_t* parenthandle, uint32_t* handle,
2126 uint16_t ptp_mtp_setobjectproplist (PTPParams* params, MTPProperties *props, int nrofprops);
2129 uint16_t ptp_ek_9007 (PTPParams* params, unsigned char **serial, unsigned int *size);
2130 uint16_t ptp_ek_9009 (PTPParams* params, uint32_t*, uint32_t*);
2131 uint16_t ptp_ek_900c (PTPParams* params, unsigned char **serial, unsigned int *size);
2132 uint16_t ptp_ek_getserial (PTPParams* params, unsigned char **serial, unsigned int *size);
2133 uint16_t ptp_ek_setserial (PTPParams* params, unsigned char *serial, unsigned int size);
2134 uint16_t ptp_ek_settext (PTPParams* params, PTPEKTextParams *text);
2135 uint16_t ptp_ek_sendfileobjectinfo (PTPParams* params, uint32_t* store,
2138 uint16_t ptp_ek_sendfileobject (PTPParams* params, unsigned char* object,
2140 uint16_t ptp_ek_sendfileobject_from_handler (PTPParams* params, PTPDataHandler*,
2144 #define ptp_canon_9012(params) ptp_generic_no_data(params,0x9012,0)
2145 uint16_t ptp_canon_gettreeinfo (PTPParams* params, uint32_t* out);
2146 uint16_t ptp_canon_gettreesize (PTPParams* params, PTPCanon_directtransfer_entry**, unsigned int*cnt);
2147 uint16_t ptp_canon_getpartialobjectinfo (PTPParams* params, uint32_t handle,
2150 uint16_t ptp_canon_get_mac_address (PTPParams* params, unsigned char **mac);
2153 * params: PTPParams*
2163 #define ptp_canon_startshootingmode(params) ptp_generic_no_data(params,PTP_OC_CANON_InitiateReleaseControl,0)
2166 * params: PTPParams*
2177 #define ptp_canon_endshootingmode(params) ptp_generic_no_data(params,PTP_OC_CANON_TerminateReleaseControl,0)
2180 * params: PTPParams*
2189 #define ptp_canon_viewfinderon(params) ptp_generic_no_data(params,PTP_OC_CANON_ViewfinderOn,0)
2192 * params: PTPParams*
2202 #define ptp_canon_viewfinderoff(params) ptp_generic_no_data(params,PTP_OC_CANON_ViewfinderOff,0)
2205 * params: PTPParams*
2218 #define ptp_canon_reset_aeafawb(params,flags) ptp_generic_no_data(params,PTP_OC_CANON_DoAeAfAwb,1,flags)
2219 uint16_t ptp_canon_checkevent (PTPParams* params,
2228 * params: PTPParams*
2233 #define ptp_canon_focuslock(params) ptp_generic_no_data(params,PTP_OC_CANON_FocusLock,0)
2241 * params: PTPParams*
2246 #define ptp_canon_focusunlock(params) ptp_generic_no_data(params,PTP_OC_CANON_FocusUnlock,0)
2252 * params: PTPParams*
2257 #define ptp_canon_keepdeviceon(params) ptp_generic_no_data(params,PTP_OC_CANON_KeepDeviceOn,0)
2263 * params: PTPParams*
2268 #define ptp_canon_eos_keepdeviceon(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_KeepDeviceOn,0)
2281 * params: PTPParams*
2286 #define ptp_canon_initiatecaptureinmemory(params) ptp_generic_no_data(params,PTP_OC_CANON_InitiateCaptureInMemory,0)
2292 * params: PTPParams*
2297 #define ptp_canon_eos_requestdevicepropvalue(params,prop) ptp_generic_no_data(params,PTP_OC_CANON_EOS_RequestDevicePropValue,1,prop)
2305 * params: PTPParams*
2310 #define ptp_canon_eos_capture(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_RemoteRelease,0)
2311 uint16_t ptp_canon_eos_getevent (PTPParams* params, PTPCanon_changes_entry **entries, int *nrofentries);
2312 uint16_t ptp_canon_getpartialobject (PTPParams* params, uint32_t handle,
2316 uint16_t ptp_canon_getviewfinderimage (PTPParams* params, unsigned char** image,
2318 uint16_t ptp_canon_getchanges (PTPParams* params, uint16_t** props,
2320 uint16_t ptp_canon_getobjectinfo (PTPParams* params, uint32_t store,
2325 uint16_t ptp_canon_eos_getdeviceinfo (PTPParams* params, PTPCanonEOSDeviceInfo*di);
2331 * params: PTPParams*
2336 #define ptp_canon_eos_setuilock(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetUILock,0)
2342 * params: PTPParams*
2347 #define ptp_canon_eos_resetuilock(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_ResetUILock,0)
2353 * params: PTPParams*
2358 #define ptp_canon_eos_start_viewfinder(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_InitiateViewfinder,0)
2364 * params: PTPParams*
2369 #define ptp_canon_eos_end_viewfinder(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_TerminateViewfinder,0)
2370 uint16_t ptp_canon_eos_get_viewfinder_image (PTPParams* params, unsigned char **data, unsigned int *size);
2371 uint16_t ptp_canon_get_objecthandle_by_name (PTPParams* params, char* name, uint32_t* objectid);
2372 uint16_t ptp_canon_get_directory (PTPParams* params, PTPObjectHandles *handles, PTPObjectInfo **oinfos, uint32_t **flags);
2376 * params: PTPParams*
2383 #define ptp_canon_setobjectarchive(params,oid,flags) ptp_generic_no_data(params,PTP_OC_CANON_SetObjectArchive,2,oid,flags)
2384 uint16_t ptp_canon_get_customize_data (PTPParams* params, uint32_t themenr,
2386 uint16_t ptp_canon_getpairinginfo (PTPParams* params, uint32_t nr, unsigned char**, unsigned int*);
2388 uint16_t ptp_canon_eos_getstorageids (PTPParams* params, PTPStorageIDs* storageids);
2389 uint16_t ptp_canon_eos_getstorageinfo (PTPParams* params, uint32_t p1);
2390 uint16_t ptp_canon_eos_getpartialobject (PTPParams* params, uint32_t oid, uint32_t off, uint32_t xsize, unsigned char**data);
2391 uint16_t ptp_canon_eos_setdevicepropvalueex (PTPParams* params, unsigned char* data, unsigned int size);
2392 #define ptp_canon_eos_setremotemode(params,p1) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetRemoteMode,1,p1)
2393 #define ptp_canon_eos_seteventmode(params,p1) ptp_generic_no_data(params,PTP_OC_CANON_EOS_SetEventMode,1,p1)
2399 * params: PTPParams*
2405 #define ptp_canon_eos_transfercomplete(params,oid) ptp_generic_no_data(params,PTP_OC_CANON_EOS_TransferComplete,1,oid)
2407 #define ptp_canon_eos_pchddcapacity(params,p1,p2,p3) ptp_generic_no_data(params,PTP_OC_CANON_EOS_PCHDDCapacity,3,p1,p2,p3)
2408 #define ptp_canon_eos_bulbstart(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_BulbStart,1)
2409 #define ptp_canon_eos_bulbend(params) ptp_generic_no_data(params,PTP_OC_CANON_EOS_BulbEnd,1)
2410 uint16_t ptp_canon_eos_getdevicepropdesc (PTPParams* params, uint16_t propcode,
2412 uint16_t ptp_canon_eos_setdevicepropvalue (PTPParams* params, uint16_t propcode,
2414 uint16_t ptp_nikon_get_vendorpropcodes (PTPParams* params, uint16_t **props, unsigned int *size);
2415 uint16_t ptp_nikon_curve_download (PTPParams* params,
2417 uint16_t ptp_nikon_getptpipinfo (PTPParams* params, unsigned char **data, unsigned int *size);
2418 uint16_t ptp_nikon_getwifiprofilelist (PTPParams* params);
2419 uint16_t ptp_nikon_writewifiprofile (PTPParams* params, PTPNIKONWifiProfile* profile);
2425 * params: PTPParams*
2431 #define ptp_nikon_deletewifiprofile(params,profilenr) ptp_generic_no_data(params,PTP_OC_NIKON_DeleteProfile,1,profilenr)
2437 * params: PTPParams*
2443 #define ptp_nikon_setcontrolmode(params,mode) ptp_generic_no_data(params,PTP_OC_NIKON_SetControlMode,1,mode)
2449 * params: PTPParams*
2454 #define ptp_nikon_afdrive(params) ptp_generic_no_data(params,PTP_OC_NIKON_AfDrive,0)
2460 * params: PTPParams*
2467 #define ptp_nikon_mfdrive(params,flag,amount) ptp_generic_no_data(params,PTP_OC_NIKON_MfDrive,2,flag,amount)
2473 * params: PTPParams*
2479 #define ptp_nikon_capture(params,x) ptp_generic_no_data(params,PTP_OC_NIKON_Capture,1,x)
2485 * params: PTPParams*
2490 #define ptp_nikon_capture_sdram(params) ptp_generic_no_data(params,PTP_OC_NIKON_AfCaptureSDRAM,0)
2496 * params: PTPParams*
2501 #define ptp_nikon_start_liveview(params) ptp_generic_no_data(params,PTP_OC_NIKON_StartLiveView,0)
2502 uint16_t ptp_nikon_get_liveview_image (PTPParams* params, unsigned char**,unsigned int*);
2503 uint16_t ptp_nikon_get_preview_image (PTPParams* params, unsigned char**, unsigned int*, uint32_t*);
2509 * params: PTPParams*
2514 #define ptp_nikon_end_liveview(params) ptp_generic_no_data(params,PTP_OC_NIKON_EndLiveView,0)
2515 uint16_t ptp_nikon_check_event (PTPParams* params, PTPContainer **evt, int *evtcnt);
2516 uint16_t ptp_nikon_getfileinfoinblock (PTPParams* params, uint32_t p1, uint32_t p2, uint32_t p3,
2524 * params: PTPParams*
2529 #define ptp_nikon_device_ready(params) ptp_generic_no_data (params, PTP_OC_NIKON_DeviceReady, 0)
2530 uint16_t ptp_mtp_getobjectpropssupported (PTPParams* params, uint16_t ofc, uint32_t *propnum, uint16_t **props);
2533 int ptp_operation_issupported (PTPParams* params, uint16_t operation);
2534 int ptp_event_issupported (PTPParams* params, uint16_t event);
2535 int ptp_property_issupported (PTPParams* params, uint16_t property);
2540 void ptp_free_params (PTPParams *params);
2544 void ptp_perror (PTPParams* params, uint16_t error);
2547 ptp_get_property_description(PTPParams* params, uint16_t dpc);
2550 ptp_render_property_value(PTPParams* params, uint16_t dpc,
2552 int ptp_render_ofc(PTPParams* params, uint16_t ofc, int spaceleft, char *txt);
2553 int ptp_render_opcode(PTPParams* params, uint16_t opcode, int spaceleft, char *txt);
2558 MTPProperties *ptp_find_object_prop_in_cache(PTPParams *params, uint32_t const handle, uint32_t const attribute_id);
2559 void ptp_remove_object_from_cache(PTPParams *params, uint32_t handle);
2560 uint16_t ptp_add_object_to_cache(PTPParams *params, uint32_t handle);
2563 uint16_t ptp_object_find (PTPParams *params, uint32_t handle, PTPObject **retob);
2564 uint16_t ptp_object_find_or_insert (PTPParams *params, uint32_t handle, PTPObject **retob);