summaryrefslogtreecommitdiff
path: root/gphoto2
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2007-10-21 18:32:49 +0000
committerMarcus Meissner <marcus@jet.franken.de>2007-10-21 18:32:49 +0000
commitb3f834f4745e01a7e83f86f05471653545cdded1 (patch)
tree713ac2dcde62b7f4657b4d4f63a032650f7ba2b3 /gphoto2
parent992c361772d5c104a0f026f83966e2f41990add7 (diff)
downloadlibgphoto2-b3f834f4745e01a7e83f86f05471653545cdded1.tar.gz
* gphoto2/gphoto2-filesys.h: Change long
to uint64_t, int to uint32_t to fix the struct sizes to a better known value (mostly for C#). Include <stdint.h>, a ISO C99 feature. This changes the "CameraFileInfo" and "CameraStorageInformation" struct sizes on all platforms. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10807 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'gphoto2')
-rw-r--r--gphoto2/gphoto2-filesys.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/gphoto2/gphoto2-filesys.h b/gphoto2/gphoto2-filesys.h
index 08bd2e5cf..6994bfbfb 100644
--- a/gphoto2/gphoto2-filesys.h
+++ b/gphoto2/gphoto2-filesys.h
@@ -30,6 +30,7 @@
#define __GPHOTO2_FILESYS_H__
#include <time.h>
+#include <stdint.h>
#include <gphoto2/gphoto2-context.h>
#include <gphoto2/gphoto2-list.h>
@@ -94,11 +95,10 @@ typedef enum {
typedef struct _CameraFileInfoFile {
CameraFileInfoFields fields; /**< \brief Bitmask containing the set members. */
CameraFileStatus status; /**< \brief Status of the file. */
- unsigned long size; /**< \brief Size of the file. */
+ uint64_t size; /**< \brief Size of the file. */
char type[64]; /**< \brief MIME type of the file. */
-
- unsigned int width; /**< \brief Height of the file. */
- unsigned int height; /**< \brief Width of the file. */
+ uint32_t width; /**< \brief Height of the file. */
+ uint32_t height; /**< \brief Width of the file. */
char name[64]; /**< \brief Filename of the file. */
CameraFilePermissions permissions;/**< \brief Permissions of the file. */
time_t mtime; /**< \brief Modification time of the file. */
@@ -113,11 +113,11 @@ typedef struct _CameraFileInfoFile {
typedef struct _CameraFileInfoPreview {
CameraFileInfoFields fields; /**< \brief Bitmask containing the set members. */
CameraFileStatus status; /**< \brief Status of the preview. */
- unsigned long size; /**< \brief Size of the preview. */
+ uint64_t size; /**< \brief Size of the preview. */
char type[64]; /**< \brief MIME type of the preview. */
- unsigned int width; /**< \brief Width of the preview. */
- unsigned int height; /**< \brief Height of the preview. */
+ uint32_t width; /**< \brief Width of the preview. */
+ uint32_t height; /**< \brief Height of the preview. */
} CameraFileInfoPreview;
/**
@@ -129,7 +129,7 @@ typedef struct _CameraFileInfoPreview {
typedef struct _CameraFileInfoAudio {
CameraFileInfoFields fields; /**< \brief Bitmask containing the set members. */
CameraFileStatus status; /**< \brief Status of the preview file. */
- unsigned long size; /**< \brief Size of the audio file. */
+ uint64_t size; /**< \brief Size of the audio file. */
char type[64]; /**< \brief MIME type of the audio file. */
} CameraFileInfoAudio;
@@ -220,9 +220,9 @@ typedef struct _CameraStorageInformation {
CameraStorageType type; /**< \brief Hardware type of the storage. */
CameraStorageFilesystemType fstype; /**< \brief Hierarchy type of the filesystem. */
CameraStorageAccessType access; /**< \brief Access permissions. */
- unsigned long capacitykbytes; /**< \brief Total capacity in kbytes. */
- unsigned long freekbytes; /**< \brief Free space in kbytes. */
- unsigned long freeimages; /**< \brief Free space in images (guessed by camera). */
+ uint64_t capacitykbytes; /**< \brief Total capacity in kbytes. */
+ uint64_t freekbytes; /**< \brief Free space in kbytes. */
+ uint64_t freeimages; /**< \brief Free space in images (guessed by camera). */
} CameraStorageInformation;
/**