• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
GD_C_PACUtilities.h
Go to the documentation of this file.
1 /*
2  * (c) 2017 BlackBerry Limited. All rights reserved.
3  */
4 
5 #ifndef GD_C_PACUTILITIES_H
6 #define GD_C_PACUTILITIES_H
7 
21 typedef void (*completionCallback)(const char *myIP);
22 
36 typedef void (*completionCallbackEx)(const char *myIP, const void *data);
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 #ifndef GD_C_API
43 # if !defined(_WIN32)
44 # define GD_C_API __attribute__((visibility("default")))
45 # else
46 # define GD_C_API
47 # endif
48 #endif
49 
50 #ifndef GD_C_API_EXT
51 # define GD_C_API_EXT
52 #endif
53 
54 
82 GD_C_API void GD_myipaddress(const char* host, unsigned int port, completionCallback callback);
83 
106 GD_C_API void GD_myipaddressEx(const char* host, unsigned int port, completionCallbackEx callback, const void* data);
107 
108 #ifdef __cplusplus
109 }
110 #endif
111 
115 #endif
completionCallbackEx
void(* completionCallbackEx)(const char *myIP, const void *data)
End point IP address retrieval completion extended callback.
Definition: GD_C_PACUtilities.h:36
completionCallback
void(* completionCallback)(const char *myIP)
End point IP address retrieval completion callback.
Definition: GD_C_PACUtilities.h:21
GD_myipaddressEx
void GD_myipaddressEx(const char *host, unsigned int port, completionCallbackEx callback, const void *data)
Get the IP address of the BlackBerry Dynamics end point for a specified host with a callback extensio...
GD_myipaddress
void GD_myipaddress(const char *host, unsigned int port, completionCallback callback)
Get the IP address of the BlackBerry Dynamics end point for a specified host.