From 8a7646d36f35325d884cbc7104d47920d109615a Mon Sep 17 00:00:00 2001 From: petabyt Date: Fri, 12 Apr 2024 22:47:01 +0000 Subject: [PATCH] deploy: 0c05030457d734668085d182f85a3f511da54bf4 --- camlib_8h.html | 324 +--------------- camlib_8h_source.html | 215 +++++----- cl__ops_8h.html | 453 ++++++++++++++++++++++ cl__ops_8h_source.html | 193 +++++++++ dir_68267d1309a1af8e8297ef4c3efbcdba.html | 2 + doxygen_crawl.html | 4 + files.html | 1 + functions.html | 56 ++- functions_func.html | 103 +++++ globals.html | 33 +- globals_func.html | 33 +- index.html | 6 +- menudata.js | 12 +- search/all_1.js | 7 +- search/all_9.js | 71 ++-- search/files_0.js | 3 +- search/functions_0.js | 55 ++- structPtpRuntime-members.html | 20 + structPtpRuntime.html | 314 ++++++++++++++- 19 files changed, 1382 insertions(+), 523 deletions(-) create mode 100644 cl__ops_8h.html create mode 100644 cl__ops_8h_source.html create mode 100644 functions_func.html diff --git a/camlib_8h.html b/camlib_8h.html index 4bbe5c9..790fda1 100644 --- a/camlib_8h.html +++ b/camlib_8h.html @@ -91,7 +91,7 @@ #include <unistd.h>
#include "cl_data.h"
#include "cl_backend.h"
-#include "cl_ops.h"
+#include "cl_ops.h"
#include "cl_enum.h"
#include "cl_bind.h"
@@ -136,25 +136,25 @@ #define CAMLIB_INCLUDE_IMPL   -#define ptp_get_last_transaction(...)   ptp_get_last_transaction_id(__VA_ARGS__) +#define ptp_get_last_transaction(...)   ptp_get_last_transaction_id(__VA_ARGS__)   -#define ptp_generic_new(...)   ptp_new(__VA_ARGS__) +#define ptp_generic_new(...)   ptp_new(__VA_ARGS__)   -#define ptp_generic_close(...)   ptp_close(__VA_ARGS__) +#define ptp_generic_close(...)   ptp_close(__VA_ARGS__)   -#define ptp_generic_reset(...)   ptp_reset(__VA_ARGS__) +#define ptp_generic_reset(...)   ptp_reset(__VA_ARGS__)   -#define ptp_generic_init(...)   ptp_init(__VA_ARGS__) +#define ptp_generic_init(...)   ptp_init(__VA_ARGS__)   -#define ptp_generic_send(...)   ptp_send(__VA_ARGS__) +#define ptp_generic_send(...)   ptp_send(__VA_ARGS__)   -#define ptp_generic_send_data(...)   ptp_send_data(__VA_ARGS__) +#define ptp_generic_send_data(...)   ptp_send_data(__VA_ARGS__)   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -342,245 +273,6 @@ int 

@@ -227,75 +227,6 @@ const char * 

ptp_perror (int rc)
 Evaluates PtpGeneralError into string message.
 
int ptp_get_return_code (struct PtpRuntime *r)
 Returns the return code (RC) currently in the data buffer.
 
int ptp_get_param_length (struct PtpRuntime *r)
 Get number of parameters in packet in data buffer.
 
uint32_t ptp_get_param (struct PtpRuntime *r, int i)
 Get parameter at index i.
 
int ptp_get_last_transaction_id (struct PtpRuntime *r)
 Get transaction ID of packet in the data buffer.
 
uint8_t * ptp_get_payload (struct PtpRuntime *r)
 Get ptr of packet payload in data buffer, after packet header.
 
int ptp_get_payload_length (struct PtpRuntime *r)
 Get length of payload returned by ptp_get_payload.
 
-struct PtpRuntimeptp_new (int options)
 Allocate new PtpRuntime based on bitfield options - see PtpConnType.
 
-void ptp_reset (struct PtpRuntime *r)
 Reset all session-specific fields of PtpRuntime - both libusb and libwpd backends call this before establishing connection, so calling this is not required.
 
-void ptp_init (struct PtpRuntime *r)
 Init PtpRuntime locally - uses default recommended settings (USB)
 
-void ptp_close (struct PtpRuntime *r)
 Frees PtpRuntime data buffer - doesn't free the actual structure, or device info (yet)
 
-int ptp_send (struct PtpRuntime *r, struct PtpCommand *cmd)
 Send a command request to the device with no data phase.
 
-int ptp_send_data (struct PtpRuntime *r, struct PtpCommand *cmd, void *data, int length)
 Send a command request to the device with a data phase (thread safe)
 
-int ptp_get_event (struct PtpRuntime *r, struct PtpEventContainer *ec)
 Try and get an event from the camera over int endpoint (USB-only)
 
-void ptp_mutex_unlock (struct PtpRuntime *r)
 Unlock the IO mutex (unless it was kept locked)
 
void ptp_mutex_keep_locked (struct PtpRuntime *r)
 Keep the mutex locked one more time for the current thread.
 
-void ptp_mutex_lock (struct PtpRuntime *r)
 Lock the IO mutex - only should be used by backend.
 
int ptp_device_type (struct PtpRuntime *r)
 Gets type of device from r->di.
 
int ptp_check_opcode (struct PtpRuntime *r, int opcode)
 Check if an opcode is supported by looking through supported props in r->di.
 
int ptp_check_prop (struct PtpRuntime *r, int code)
 Check if a property code is supported by looking through supported props in r->di.
 
int ptp_buffer_resize (struct PtpRuntime *r, size_t size)
 Mostly for internal use - realloc the data buffer.
 
int ptp_write_unicode_string (char *dat, char *string)
 
ptp_dump (struct PtpRuntime *r)
 
-

Function Documentation

- -

◆ ptp_buffer_resize()

- -
-
- - - - - - - - - - - -
int ptp_buffer_resize (struct PtpRuntime * r,
size_t size )
-
- -

Mostly for internal use - realloc the data buffer.

-
Note
r->data will be reassigned, any old references must be updated
- -
-
- -

◆ ptp_check_opcode()

- -
-
- - - - - - - - - - - -
int ptp_check_opcode (struct PtpRuntime * r,
int opcode )
-
- -

Check if an opcode is supported by looking through supported props in r->di.

-
Returns
1 if yes, 0 if no
- -
-
- -

◆ ptp_check_prop()

- -
-
- - - - - - - - - - - -
int ptp_check_prop (struct PtpRuntime * r,
int code )
-
- -

Check if a property code is supported by looking through supported props in r->di.

-
Returns
1 if yes, 0 if no
- -
-
- -

◆ ptp_device_type()

- -
-
- - - - - - - -
int ptp_device_type (struct PtpRuntime * r)
-
- -

Gets type of device from r->di.

-
Returns
enum PtpDeviceType
- -
-
- -

◆ ptp_get_last_transaction_id()

- -
-
- - - - - - - -
int ptp_get_last_transaction_id (struct PtpRuntime * r)
-
- -

Get transaction ID of packet in the data buffer.

-
Note
Not thread safe.
- -
-
- -

◆ ptp_get_param()

- -
-
- - - - - - - - - - - -
uint32_t ptp_get_param (struct PtpRuntime * r,
int i )
-
- -

Get parameter at index i.

-
Note
Not thread safe.
- -
-
- -

◆ ptp_get_param_length()

- -
-
- - - - - - - -
int ptp_get_param_length (struct PtpRuntime * r)
-
- -

Get number of parameters in packet in data buffer.

-
Note
Not thread safe.
- -
-
- -

◆ ptp_get_payload()

- -
-
- - - - - - - -
uint8_t * ptp_get_payload (struct PtpRuntime * r)
-
- -

Get ptr of packet payload in data buffer, after packet header.

-
Note
Not thread safe.
- -
-
- -

◆ ptp_get_payload_length()

- -
-
- - - - - - - -
int ptp_get_payload_length (struct PtpRuntime * r)
-
- -

Get length of payload returned by ptp_get_payload.

-
Note
Not thread safe.
- -
-
- -

◆ ptp_get_return_code()

- -
-
- - - - - - - -
int ptp_get_return_code (struct PtpRuntime * r)
-
- -

Returns the return code (RC) currently in the data buffer.

-
Note
Not thread safe.
- -
-
- -

◆ ptp_mutex_keep_locked()

- -
-
- - - - - - - -
void ptp_mutex_keep_locked (struct PtpRuntime * r)
-
- -

Keep the mutex locked one more time for the current thread.

-
Note
When calling a thread-safe function, this will garuntee the mutex locked, in the case that you want to continue using the buffer. Must be unlocked or will cause deadlock.
-
-camlib uses a recursive mutex.
- -
-