Ticket #9: 200_dll.patch
| File 200_dll.patch, 19.6 KB (added by hsattler, 17 months ago) |
|---|
-
openobex-anoncvs
old new 35 35 36 36 #ifdef _WIN32 37 37 #include <winsock2.h> 38 #ifndef OBEX_STATIC_LIB 39 #define LIB_SYMBOL __declspec(dllimport) 40 #endif 41 38 42 #else 39 43 #include <sys/socket.h> 40 44 #endif 41 45 46 #ifndef LIB_SYMBOL 47 #define LIB_SYMBOL 48 #endif 49 42 50 /* Hum... This would need to be autogenerated from configure, 43 51 * I hate hardcoding version numbers. Jean II */ 44 52 #define OPENOBEX_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) … … 61 69 /* 62 70 * OBEX API 63 71 */ 64 obex_t *OBEX_Init(int transport, obex_event_t eventcb, unsigned int flags); 65 void OBEX_Cleanup(obex_t *self); 66 void OBEX_SetUserData(obex_t *self, void * data); 67 void * OBEX_GetUserData(obex_t *self); 68 void OBEX_SetUserCallBack(obex_t *self, obex_event_t eventcb, void * data); 69 int OBEX_SetTransportMTU(obex_t *self, uint16_t mtu_rx, uint16_t mtu_tx_max); 70 int OBEX_GetFD(obex_t *self); 71 72 int OBEX_RegisterCTransport(obex_t *self, obex_ctrans_t *ctrans); 73 void OBEX_SetCustomData(obex_t *self, void * data); 74 void * OBEX_GetCustomData(obex_t *self); 75 76 int OBEX_TransportConnect(obex_t *self, struct sockaddr *saddr, int addlen); 77 int OBEX_TransportDisconnect(obex_t *self); 78 int OBEX_CustomDataFeed(obex_t *self, uint8_t *inputbuf, int actual); 79 int OBEX_HandleInput(obex_t *self, int timeout); 80 81 int OBEX_ServerRegister(obex_t *self, struct sockaddr *saddr, int addrlen); 82 obex_t *OBEX_ServerAccept(obex_t *server, obex_event_t eventcb, void * data); 83 int OBEX_Request(obex_t *self, obex_object_t *object); 84 int OBEX_CancelRequest(obex_t *self, int nice); 85 int OBEX_SuspendRequest(obex_t *self, obex_object_t *object); 86 int OBEX_ResumeRequest(obex_t *self); 87 88 obex_object_t *OBEX_ObjectNew(obex_t *self, uint8_t cmd); 89 int OBEX_ObjectDelete(obex_t *self, obex_object_t *object); 90 91 int OBEX_ObjectAddHeader(obex_t *self, obex_object_t *object, uint8_t hi, 92 obex_headerdata_t hv, uint32_t hv_size, unsigned int flags); 93 int OBEX_ObjectGetNextHeader(obex_t *self, obex_object_t *object, uint8_t *hi, 94 obex_headerdata_t *hv, 95 uint32_t *hv_size); 96 int OBEX_ObjectReParseHeaders(obex_t *self, obex_object_t *object); 97 int OBEX_ObjectSetRsp(obex_object_t *object, uint8_t rsp, uint8_t lastrsp); 98 99 int OBEX_ObjectGetNonHdrData(obex_object_t *object, uint8_t **buffer); 100 int OBEX_ObjectSetNonHdrData(obex_object_t *object, const uint8_t *buffer, unsigned int len); 101 int OBEX_ObjectSetHdrOffset(obex_object_t *object, unsigned int offset); 102 int OBEX_ObjectReadStream(obex_t *self, obex_object_t *object, const uint8_t **buf); 103 int OBEX_ObjectGetCommand(obex_t *self, obex_object_t *object); 72 LIB_SYMBOL obex_t * OBEX_Init(int transport, obex_event_t eventcb, unsigned int flags); 73 LIB_SYMBOL void OBEX_Cleanup(obex_t *self); 74 LIB_SYMBOL void OBEX_SetUserData(obex_t *self, void * data); 75 LIB_SYMBOL void * OBEX_GetUserData(obex_t *self); 76 LIB_SYMBOL void OBEX_SetUserCallBack(obex_t *self, obex_event_t eventcb, void * data); 77 LIB_SYMBOL int OBEX_SetTransportMTU(obex_t *self, uint16_t mtu_rx, uint16_t mtu_tx_max); 78 LIB_SYMBOL int OBEX_GetFD(obex_t *self); 79 80 LIB_SYMBOL int OBEX_RegisterCTransport(obex_t *self, obex_ctrans_t *ctrans); 81 LIB_SYMBOL void OBEX_SetCustomData(obex_t *self, void * data); 82 LIB_SYMBOL void * OBEX_GetCustomData(obex_t *self); 83 84 LIB_SYMBOL int OBEX_TransportConnect(obex_t *self, struct sockaddr *saddr, int addlen); 85 LIB_SYMBOL int OBEX_TransportDisconnect(obex_t *self); 86 LIB_SYMBOL int OBEX_CustomDataFeed(obex_t *self, uint8_t *inputbuf, int actual); 87 LIB_SYMBOL int OBEX_HandleInput(obex_t *self, int timeout); 88 89 LIB_SYMBOL int OBEX_ServerRegister(obex_t *self, struct sockaddr *saddr, int addrlen); 90 LIB_SYMBOL obex_t * OBEX_ServerAccept(obex_t *server, obex_event_t eventcb, void * data); 91 92 LIB_SYMBOL int OBEX_Request(obex_t *self, obex_object_t *object); 93 LIB_SYMBOL int OBEX_CancelRequest(obex_t *self, int nice); 94 LIB_SYMBOL int OBEX_SuspendRequest(obex_t *self, obex_object_t *object); 95 LIB_SYMBOL int OBEX_ResumeRequest(obex_t *self); 96 97 LIB_SYMBOL obex_object_t * OBEX_ObjectNew(obex_t *self, uint8_t cmd); 98 LIB_SYMBOL int OBEX_ObjectDelete(obex_t *self, obex_object_t *object); 99 100 LIB_SYMBOL int OBEX_ObjectAddHeader(obex_t *self, obex_object_t *object, 101 uint8_t hi, obex_headerdata_t hv, uint32_t hv_size, 102 unsigned int flags); 103 LIB_SYMBOL int OBEX_ObjectGetNextHeader(obex_t *self, obex_object_t *object, 104 uint8_t *hi, obex_headerdata_t *hv, uint32_t *hv_size); 105 LIB_SYMBOL int OBEX_ObjectReParseHeaders(obex_t *self, obex_object_t *object); 106 LIB_SYMBOL int OBEX_ObjectSetRsp(obex_object_t *object, uint8_t rsp, uint8_t lastrsp); 107 108 LIB_SYMBOL int OBEX_ObjectGetNonHdrData(obex_object_t *object, uint8_t **buffer); 109 LIB_SYMBOL int OBEX_ObjectSetNonHdrData(obex_object_t *object, const uint8_t *buffer, unsigned int len); 110 LIB_SYMBOL int OBEX_ObjectSetHdrOffset(obex_object_t *object, unsigned int offset); 111 LIB_SYMBOL int OBEX_ObjectReadStream(obex_t *self, obex_object_t *object, const uint8_t **buf); 112 LIB_SYMBOL int OBEX_ObjectGetCommand(obex_t *self, obex_object_t *object); 104 113 105 int OBEX_UnicodeToChar(uint8_t *c, const uint8_t *uc, int size);106 int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size);114 LIB_SYMBOL int OBEX_UnicodeToChar(uint8_t *c, const uint8_t *uc, int size); 115 LIB_SYMBOL int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size); 107 116 108 char *OBEX_ResponseToString(int rsp);117 LIB_SYMBOL char *OBEX_ResponseToString(int rsp); 109 118 110 119 /* 111 120 * This function is deprecated and will be removed in OpenOBEX 1.1.0 … … 113 122 * Please use the OBEX_ResponseToString instead. 114 123 * 115 124 */ 116 char* OBEX_GetResponseMessage(obex_t *self, int rsp);125 LIB_SYMBOL char* OBEX_GetResponseMessage(obex_t *self, int rsp); 117 126 118 127 /* 119 128 * TcpOBEX API (IPv4/IPv6) 120 129 */ 121 int TcpOBEX_ServerRegister(obex_t *self, struct sockaddr *addr, int addrlen);122 int TcpOBEX_TransportConnect(obex_t *self, struct sockaddr *addr, int addrlen);130 LIB_SYMBOL int TcpOBEX_ServerRegister(obex_t *self, struct sockaddr *addr, int addrlen); 131 LIB_SYMBOL int TcpOBEX_TransportConnect(obex_t *self, struct sockaddr *addr, int addrlen); 123 132 124 133 /* 125 134 * InOBEX API (deprecated) 126 135 */ 127 int InOBEX_ServerRegister(obex_t *self);128 int InOBEX_TransportConnect(obex_t *self, struct sockaddr *saddr, int addrlen);136 LIB_SYMBOL int InOBEX_ServerRegister(obex_t *self); 137 LIB_SYMBOL int InOBEX_TransportConnect(obex_t *self, struct sockaddr *saddr, int addrlen); 129 138 130 139 /* 131 140 * IrOBEX API 132 141 */ 133 int IrOBEX_ServerRegister(obex_t *self, const char *service);134 int IrOBEX_TransportConnect(obex_t *self, const char *service);142 LIB_SYMBOL int IrOBEX_ServerRegister(obex_t *self, const char *service); 143 LIB_SYMBOL int IrOBEX_TransportConnect(obex_t *self, const char *service); 135 144 136 145 /* 137 146 * Bluetooth OBEX API 138 147 */ 139 int BtOBEX_ServerRegister(obex_t *self, bdaddr_t *src, uint8_t channel);140 int BtOBEX_TransportConnect(obex_t *self, bdaddr_t *src, bdaddr_t *dst, uint8_t channel);148 LIB_SYMBOL int BtOBEX_ServerRegister(obex_t *self, bdaddr_t *src, uint8_t channel); 149 LIB_SYMBOL int BtOBEX_TransportConnect(obex_t *self, bdaddr_t *src, bdaddr_t *dst, uint8_t channel); 141 150 142 151 /* 143 152 * OBEX File API 144 153 */ 145 int FdOBEX_TransportSetup(obex_t *self, int rfd, int wfd, int mtu);154 LIB_SYMBOL int FdOBEX_TransportSetup(obex_t *self, int rfd, int wfd, int mtu); 146 155 147 156 /* 148 157 * OBEX interface discovery API 149 158 */ 150 intOBEX_FindInterfaces(obex_t *self, obex_interface_t **intf);151 intOBEX_InterfaceConnect(obex_t *self, obex_interface_t *intf);152 void OBEX_FreeInterfaces(obex_t *self);159 LIB_SYMBOL int OBEX_FindInterfaces(obex_t *self, obex_interface_t **intf); 160 LIB_SYMBOL int OBEX_InterfaceConnect(obex_t *self, obex_interface_t *intf); 161 LIB_SYMBOL void OBEX_FreeInterfaces(obex_t *self); 153 162 154 163 #ifdef __cplusplus 155 164 } -
openobex-anoncvs
old new 40 40 #ifdef _WIN32 41 41 #include <winsock2.h> 42 42 #define ESOCKTNOSUPPORT 1 43 #else /* _WIN32 */ 43 #ifdef DLL_EXPORT 44 #define LIB_SYMBOL __declspec(dllexport) 45 #endif 44 46 47 #else /* _WIN32 */ 45 48 #include <fcntl.h> 46 49 #include <signal.h> 47 50 #include <unistd.h> 51 #ifdef HAVE_VISIBILITY 52 #define LIB_SYMBOL __attribute__ ((visibility("default"))) 53 #endif 54 #endif 55 56 #ifndef LIB_SYMBOL 57 #define LIB_SYMBOL 48 58 #endif 49 59 50 60 #include "obex_main.h" … … 69 79 typedef char *bdaddr_t; 70 80 #endif 71 81 82 LIB_SYMBOL 72 83 void OBEX_FreeInterfaces(obex_t *self); 73 84 74 85 /** … … 90 101 * 91 102 * Returns an OBEX handle or %NULL on error. 92 103 */ 104 LIB_SYMBOL 93 105 obex_t *OBEX_Init(int transport, obex_event_t eventcb, unsigned int flags) 94 106 { 95 107 obex_t *self; … … 182 194 * Call this function directly after OBEX_Init if you are using 183 195 * a custom transport. 184 196 */ 197 LIB_SYMBOL 185 198 int OBEX_RegisterCTransport(obex_t *self, obex_ctrans_t *ctrans) 186 199 { 187 200 obex_return_val_if_fail(self != NULL, -1); … … 197 210 * 198 211 * Close down an OBEX instance. 199 212 */ 213 LIB_SYMBOL 200 214 void OBEX_Cleanup(obex_t *self) 201 215 { 202 216 obex_return_if_fail(self != NULL); … … 220 234 * @self: OBEX handle 221 235 * @data: It's all up to you! 222 236 */ 237 LIB_SYMBOL 223 238 void OBEX_SetUserData(obex_t *self, void * data) 224 239 { 225 240 obex_return_if_fail(self != NULL); … … 232 247 * 233 248 * Returns userdata 234 249 */ 250 LIB_SYMBOL 235 251 void * OBEX_GetUserData(obex_t *self) 236 252 { 237 253 obex_return_val_if_fail(self != NULL, 0); … … 244 260 * @eventcb: Function pointer to your new event callback. 245 261 * @data: Pointer to the new user data to pass to the new callback (optional) 246 262 */ 263 LIB_SYMBOL 247 264 void OBEX_SetUserCallBack(obex_t *self, obex_event_t eventcb, void * data) 248 265 { 249 266 obex_return_if_fail(self != NULL); … … 269 286 * 270 287 * Returns -1 on error. 271 288 */ 289 LIB_SYMBOL 272 290 int OBEX_SetTransportMTU(obex_t *self, uint16_t mtu_rx, uint16_t mtu_tx_max) 273 291 { 274 292 obex_return_val_if_fail(self != NULL, -EFAULT); … … 311 329 * 312 330 * Returns -1 on error. 313 331 */ 332 LIB_SYMBOL 314 333 int OBEX_ServerRegister(obex_t *self, struct sockaddr *saddr, int addrlen) 315 334 { 316 335 DEBUG(3, "\n"); … … 343 362 * 344 363 * Returns the client instance or %NULL for error. 345 364 */ 365 LIB_SYMBOL 346 366 obex_t *OBEX_ServerAccept(obex_t *server, obex_event_t eventcb, void * data) 347 367 { 348 368 obex_t *self; … … 431 451 * Like select() this function returns -1 on error, 0 on timeout or 432 452 * positive on success. 433 453 */ 454 LIB_SYMBOL 434 455 int OBEX_HandleInput(obex_t *self, int timeout) 435 456 { 436 457 DEBUG(4, "\n"); … … 445 466 * @inputbuf: Pointer to custom data 446 467 * @actual: Length of buffer 447 468 */ 469 LIB_SYMBOL 448 470 int OBEX_CustomDataFeed(obex_t *self, uint8_t *inputbuf, int actual) 449 471 { 450 472 DEBUG(3, "\n"); … … 464 486 * 465 487 * Returns -1 on error. 466 488 */ 489 LIB_SYMBOL 467 490 int OBEX_TransportConnect(obex_t *self, struct sockaddr *saddr, int addrlen) 468 491 { 469 492 DEBUG(4, "\n"); … … 481 504 * OBEX_TransportDisconnect - Disconnect transport 482 505 * @self: OBEX handle 483 506 */ 507 LIB_SYMBOL 484 508 int OBEX_TransportDisconnect(obex_t *self) 485 509 { 486 510 DEBUG(4, "\n"); … … 508 532 * This mean that after receiving an incomming connection, you need to 509 533 * call this function again. 510 534 */ 535 LIB_SYMBOL 511 536 int OBEX_GetFD(obex_t *self) 512 537 { 513 538 obex_return_val_if_fail(self != NULL, -1); … … 523 548 * 524 549 * Returns negative on error. 525 550 */ 551 LIB_SYMBOL 526 552 int OBEX_Request(obex_t *self, obex_object_t *object) 527 553 { 528 554 DEBUG(4, "\n"); … … 551 577 * 552 578 * 553 579 */ 580 LIB_SYMBOL 554 581 int OBEX_CancelRequest(obex_t *self, int nice) 555 582 { 556 583 obex_return_val_if_fail(self != NULL, -1); … … 562 589 * @self: OBEX handle 563 590 * @object: object to suspend (NULL to suspend currently transfered object) 564 591 */ 592 LIB_SYMBOL 565 593 int OBEX_SuspendRequest(obex_t *self, obex_object_t *object) 566 594 { 567 595 obex_return_val_if_fail(object != NULL || self->object != NULL, -1); … … 572 600 * OBEX_ResumeRequest - Resume transfer of an object 573 601 * @self: OBEX handle 574 602 */ 603 LIB_SYMBOL 575 604 int OBEX_ResumeRequest(obex_t *self) 576 605 { 577 606 obex_return_val_if_fail(self->object != NULL, -1); … … 585 614 * 586 615 * Returns a pointer to a new OBEX Object or %NULL on error. 587 616 */ 617 LIB_SYMBOL 588 618 obex_object_t *OBEX_ObjectNew(obex_t *self, uint8_t cmd) 589 619 { 590 620 obex_object_t *object; … … 615 645 * Note that as soon as you have passed an object to the lib using 616 646 * OBEX_Request(), you shall not delete it yourself. 617 647 */ 648 LIB_SYMBOL 618 649 int OBEX_ObjectDelete(obex_t *self, obex_object_t *object) 619 650 { 620 651 obex_return_val_if_fail(object != NULL, -1); … … 651 682 * 652 683 * The headers will be sent in the order you add them. 653 684 */ 685 LIB_SYMBOL 654 686 int OBEX_ObjectAddHeader(obex_t *self, obex_object_t *object, uint8_t hi, 655 687 obex_headerdata_t hv, uint32_t hv_size, 656 688 unsigned int flags) … … 675 707 * 676 708 * You will get the headers in the received order. 677 709 */ 710 LIB_SYMBOL 678 711 int OBEX_ObjectGetNextHeader(obex_t *self, obex_object_t *object, uint8_t *hi, 679 712 obex_headerdata_t *hv, 680 713 uint32_t *hv_size) … … 697 730 * Returns 1 on success 698 731 * Returns 0 if failed due previous parsing not completed. 699 732 */ 733 LIB_SYMBOL 700 734 int OBEX_ObjectReParseHeaders(obex_t *self, obex_object_t *object) 701 735 { 702 736 obex_return_val_if_fail(self != NULL, -1); … … 722 756 * 723 757 * Returns the number of bytes in buffer, or 0 for end-of-stream. 724 758 */ 759 LIB_SYMBOL 725 760 int OBEX_ObjectReadStream(obex_t *self, obex_object_t *object, const uint8_t **buf) 726 761 { 727 762 obex_return_val_if_fail(self != NULL, -1); … … 739 774 * 740 775 * Returns -1 on error. 741 776 */ 777 LIB_SYMBOL 742 778 int OBEX_ObjectSetRsp(obex_object_t *object, uint8_t rsp, uint8_t lastrsp) 743 779 { 744 780 obex_return_val_if_fail(object != NULL, -1); … … 752 788 * 753 789 * Returns the size of the buffer or -1 for error. 754 790 */ 791 LIB_SYMBOL 755 792 int OBEX_ObjectGetNonHdrData(obex_object_t *object, uint8_t **buffer) 756 793 { 757 794 obex_return_val_if_fail(object != NULL, -1); … … 771 808 * Some commands (notably SetPath) send data before headers. Use this 772 809 * function to set this data. 773 810 */ 811 LIB_SYMBOL 774 812 int OBEX_ObjectSetNonHdrData(obex_object_t *object, const uint8_t *buffer, unsigned int len) 775 813 { 776 814 //TODO: Check that we actually can send len bytes without violating MTU … … 798 836 * command has data before the headers comes. You do NOT need to use this 799 837 * function on Connect and SetPath, they are handled automatically. 800 838 */ 839 LIB_SYMBOL 801 840 int OBEX_ObjectSetHdrOffset(obex_object_t *object, unsigned int offset) 802 841 { 803 842 obex_return_val_if_fail(object != NULL, -1); … … 812 851 * 813 852 * Call this function to get the OBEX command of an object. 814 853 */ 854 LIB_SYMBOL 815 855 int OBEX_ObjectGetCommand(obex_t *self, obex_object_t *object) 816 856 { 817 857 obex_return_val_if_fail(object != NULL || self->object != NULL, -1); … … 830 870 * 831 871 * Buffers may not overlap. Returns -1 on error. 832 872 */ 873 LIB_SYMBOL 833 874 int OBEX_UnicodeToChar(uint8_t *c, const uint8_t *uc, int size) 834 875 { 835 876 int n; … … 857 898 * 858 899 * Buffers may not overlap. Returns -1 on error. 859 900 */ 901 LIB_SYMBOL 860 902 int OBEX_CharToUnicode(uint8_t *uc, const uint8_t *c, int size) 861 903 { 862 904 int len, n; … … 885 927 * 886 928 * The returned char must not be freed. Returns %NULL on error. 887 929 */ 930 LIB_SYMBOL 888 931 char *OBEX_ResponseToString(int rsp) 889 932 { 890 933 DEBUG(4, "\n"); … … 899 942 * 900 943 * The returned char must not be freed. Returns %NULL on error. 901 944 */ 945 LIB_SYMBOL 902 946 char* OBEX_GetResponseMessage(obex_t *self, int rsp) 903 947 { 904 948 DEBUG(4, "\n"); … … 922 966 * multiple connections transparently (i.e. without a lookup table). 923 967 * - Jean II 924 968 */ 969 LIB_SYMBOL 925 970 void OBEX_SetCustomData(obex_t *self, void * data) 926 971 { 927 972 obex_return_if_fail(self != NULL); … … 934 979 * 935 980 * Returns Custom Transport data 936 981 */ 982 LIB_SYMBOL 937 983 void * OBEX_GetCustomData(obex_t *self) 938 984 { 939 985 obex_return_val_if_fail(self != NULL, 0); … … 953 999 * 954 1000 * Returns -1 on error. 955 1001 */ 1002 LIB_SYMBOL 956 1003 int TcpOBEX_ServerRegister(obex_t *self, struct sockaddr *addr, int addrlen) 957 1004 { 958 1005 DEBUG(3, "\n"); … … 975 1022 * 976 1023 * Returns -1 on error. 977 1024 */ 1025 LIB_SYMBOL 978 1026 int TcpOBEX_TransportConnect(obex_t *self, struct sockaddr *addr, int addrlen) 979 1027 { 980 1028 DEBUG(4, "\n"); … … 1001 1049 * 1002 1050 * Returns -1 on error. 1003 1051 */ 1052 LIB_SYMBOL 1004 1053 int InOBEX_ServerRegister(obex_t *self) 1005 1054 { 1006 1055 DEBUG(3, "\n"); … … 1020 1069 * 1021 1070 * Returns -1 on error. 1022 1071 */ 1072 LIB_SYMBOL 1023 1073 int InOBEX_TransportConnect(obex_t *self, struct sockaddr *saddr, int addrlen) 1024 1074 { 1025 1075 DEBUG(4, "\n"); … … 1048 1098 * 1049 1099 * Returns -1 on error. 1050 1100 */ 1101 LIB_SYMBOL 1051 1102 int IrOBEX_ServerRegister(obex_t *self, const char *service) 1052 1103 { 1053 1104 DEBUG(3, "\n"); … … 1070 1121 * 1071 1122 * An easier connect function to use for IrDA (IrOBEX) only. 1072 1123 */ 1124 LIB_SYMBOL 1073 1125 int IrOBEX_TransportConnect(obex_t *self, const char *service) 1074 1126 { 1075 1127 DEBUG(4, "\n"); … … 1099 1151 * 1100 1152 * Returns -1 on error. 1101 1153 */ 1154 LIB_SYMBOL 1102 1155 int BtOBEX_ServerRegister(obex_t *self, bdaddr_t *src, uint8_t channel) 1103 1156 { 1104 1157 DEBUG(3, "\n"); … … 1122 1175 * 1123 1176 * An easier connect function to use for Bluetooth (Bluetooth OBEX) only. 1124 1177 */ 1178 LIB_SYMBOL 1125 1179 int BtOBEX_TransportConnect(obex_t *self, bdaddr_t *src, bdaddr_t *dst, uint8_t channel) 1126 1180 { 1127 1181 DEBUG(4, "\n"); … … 1153 1207 * @wfd: descriptor to write 1154 1208 * @mtu: transport mtu: 0 - default 1155 1209 */ 1210 LIB_SYMBOL 1156 1211 int FdOBEX_TransportSetup(obex_t *self, int rfd, int wfd, int mtu) 1157 1212 { 1158 1213 DEBUG(4, "\n"); … … 1177 1232 * An easier connect function to connect to a discovered interface (currently 1178 1233 * USB OBEX only). 1179 1234 */ 1235 LIB_SYMBOL 1180 1236 int OBEX_InterfaceConnect(obex_t *self, obex_interface_t *intf) 1181 1237 { 1182 1238 DEBUG(4, "\n"); … … 1210 1266 * 1211 1267 * Gets a list of OBEX interfaces, or NULL if there are none. 1212 1268 */ 1269 LIB_SYMBOL 1213 1270 int OBEX_FindInterfaces(obex_t *self, obex_interface_t **interfaces) 1214 1271 { 1215 1272 DEBUG(4, "\n"); … … 1238 1295 * Frees memory allocated to OBEX interface structures after it has been 1239 1296 * allocated by OBEX_FindInterfaces. 1240 1297 */ 1298 LIB_SYMBOL 1241 1299 void OBEX_FreeInterfaces(obex_t *self) 1242 1300 { 1243 1301 DEBUG(4, "\n"); -
openobex-anoncvs
old new 21 21 22 22 AC_PROG_LIBTOOL 23 23 24 AC_VISIBILITY 24 25 AC_CANONICAL_HOST 25 26 26 27 AC_PATH_WIN32 -
lib/Makefile.am
old new 17 17 irda.h irda_wrap.h \ 18 18 usbobex.c usbobex.h 19 19 20 libopenobex_la_CFLAGS = @CFLAG_VISIBILITY@ 21 20 22 libopenobex_la_LDFLAGS = \ 21 23 -no-undefined \ 22 24 -version-info 4:0:3 \ -
openobex-anoncvs
old new 128 128 AC_SUBST(GLIB_GENMARSHAL) 129 129 ]) 130 130 131 AC_DEFUN([AC_VISIBILITY], [ 132 case $host in 133 *-*-mingw32*) 134 AC_SUBST(CFLAG_VISIBILITY) 135 if (test "${enable_shared}" = "no"); then 136 OPENOBEX_CFLAGS="-DOBEX_STATIC_LIB" 137 fi 138 AC_SUBST(OPENOBEX_CFLAGS) 139 ;; 140 *) 141 gl_VISIBILITY 142 ;; 143 esac 144 ]) 145 131 146 AC_DEFUN([AC_ARG_OPENOBEX], [ 132 147 fortify_enable=yes 133 148 irda_enable=yes -
openobex-anoncvs
old new 9 9 Requires.private: @REQUIRES@ 10 10 Libs: -L${libdir} -lopenobex 11 11 Cflags: -I${includedir} 12 Cflags.private: @OPENOBEX_CFLAGS@
