summaryrefslogtreecommitdiff
path: root/libgphoto2_port/gphoto2/gphoto2-port-info-list.h
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2007-12-28 22:36:43 +0000
committerMarcus Meissner <marcus@jet.franken.de>2007-12-28 22:36:43 +0000
commit1b214c3addadec53d5fe53c9b90f7c53bb0fd239 (patch)
tree1bbac47395bb865a893ae8dd6c30733dacbb679d /libgphoto2_port/gphoto2/gphoto2-port-info-list.h
parentfbbd5ea9f0a37f2099b815ea3b4a73e576158411 (diff)
downloadlibgphoto2-1b214c3addadec53d5fe53c9b90f7c53bb0fd239.tar.gz
switch to use symbol versioning
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10905 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'libgphoto2_port/gphoto2/gphoto2-port-info-list.h')
-rw-r--r--libgphoto2_port/gphoto2/gphoto2-port-info-list.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/libgphoto2_port/gphoto2/gphoto2-port-info-list.h b/libgphoto2_port/gphoto2/gphoto2-port-info-list.h
index 560941527..ea8635a76 100644
--- a/libgphoto2_port/gphoto2/gphoto2-port-info-list.h
+++ b/libgphoto2_port/gphoto2/gphoto2-port-info-list.h
@@ -57,6 +57,17 @@ typedef struct _GPPortInfo {
char library_filename[1024]; /**< \brief Internal pathname of the port driver. Do not use outside of the port library. */
} GPPortInfo;
+#ifdef __LIBGPHOTO2_INCLUDE_OLD_VERSIONS
+typedef struct _GPPortInfo_v240 {
+ GPPortType type;
+ char name[64];
+ char path[64];
+
+ /* Private */
+ char library_filename[1024];
+} GPPortInfo_v240;
+#endif
+
#include <gphoto2/gphoto2-port.h>
#ifdef __cplusplus
@@ -90,6 +101,19 @@ const char *gp_port_message_codeset (const char*);
/* DEPRECATED */
typedef GPPortInfo gp_port_info;
+#ifdef __LIBGPHOTO2_INCLUDE_OLD_VERSIONS
+int gp_port_info_list_append_v240 (GPPortInfoList *list, GPPortInfo_v240 info);
+int gp_port_info_list_append_v250 (GPPortInfoList *list, GPPortInfo info);
+asm(".symver gp_port_info_list_append_v240, gp_port_info_list_append@LIBGPHOTO2_0_0");
+asm(".symver gp_port_info_list_append_v250, gp_port_info_list_append@@LIBGPHOTO2_5_0");
+#define gp_port_info_list_append gp_port_info_list_append_v250
+
+int gp_port_info_list_get_info_v240 (GPPortInfoList *list, int n, GPPortInfo_v240 *info);
+int gp_port_info_list_get_info_v250 (GPPortInfoList *list, int n, GPPortInfo *info);
+asm(".symver gp_port_info_list_get_info_v240, gp_port_info_list_get_info@LIBGPHOTO2_0_0");
+asm(".symver gp_port_info_list_get_info_v250, gp_port_info_list_get_info@@LIBGPHOTO2_5_0");
+#define gp_port_info_list_get_info gp_port_info_list_get_info_v250
+#endif
/**
* Name of the environment variable which may contain the path where