https://bitbucket.org/hudson/magic-lantern
Revision f4fb08288ce243d818bb7cbec0cc866efa5797a8 authored by alex@thinkpad on 29 October 2017, 19:04:27 UTC, committed by alex@thinkpad on 29 October 2017, 19:04:27 UTC
(they are interchangeable; older systems may require gvfs-mount, newer systems will print warnings)
1 parent 94ac658
Raw File
Tip revision: f4fb08288ce243d818bb7cbec0cc866efa5797a8 authored by alex@thinkpad on 29 October 2017, 19:04:27 UTC
Makefile: use "gio mount" rather than "gvfs-mount"
Tip revision: f4fb082
ptpbuf.h
#ifndef _ptpbuf_h_
#define _ptpbuf_h_

#define UNCACHEABLE(x)   ((void*)(((uint32_t)(x)) | 0x40000000))
#define PTPBUF_BUFS      16
#define PTPBUF_BUFSIZE   256
#define PTPBUF_MAGIC     0xEAEA3388

typedef struct
{
    uint32_t bytes_used;
    uint8_t data[PTPBUF_BUFSIZE];
} ptpbuf_buffer_t;

typedef struct
{
    uint32_t type;
    uint32_t length;
} ptpbuf_packet_t;

typedef struct
{
    uint32_t magic;
    uint32_t commit;
    uint32_t buffer_count;
    uint32_t buffer_size;
    uint32_t current_buffer;
    uint32_t overflow;
    ptpbuf_buffer_t *buffers;
    uint32_t *fetchable;
} ptpbuf_t;

#endif // _ptpbuf_h_
back to top