• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 10.2.0.83
GD_C_NETUtility.h
Go to the documentation of this file.
1 /*
2  * (c) 2017 BlackBerry Limited. All rights reserved.
3  */
4 
5 #include <stdio.h>
6 
7 #ifndef GD_C_NETUTILITY_H
8 #define GD_C_NETUTILITY_H
9 
24 typedef void (*nslookupCompletionCallback)(const char* jsonResponse);
25 
39 typedef void (*nslookupCompletionCallbackEx)(const char* jsonResponse, const void* data);
40 
47 typedef enum GD_nslookup_type_t {
51 
56 
57 #ifdef __cplusplus
58 extern "C" {
59 #endif
60 
61 #ifndef GD_C_API
62 # if !defined(_WIN32)
63 # define GD_C_API __attribute__((visibility("default")))
64 # else
65 # define GD_C_API
66 # endif
67 #endif
68 
69 #ifndef GD_C_API_EXT
70 # define GD_C_API_EXT
71 #endif
72 
73 
102 GD_C_API void GD_nslookup(const char* host, GD_nslookup_type type, nslookupCompletionCallback callback);
103 
125 GD_C_API void GD_nslookupEx(const char* host, GD_nslookup_type type, nslookupCompletionCallbackEx callback, const void* data);
126 
147 GD_C_API char* GD_getFqdn(const char* host);
148 
149 #ifdef __cplusplus
150 }
151 #endif
152 
156 #endif /* GD_C_NETUTILITY_H */
GD_getFqdn
char * GD_getFqdn(const char *host)
Get a fully qualified domain name for a host server.
GD_nslookupEx
void GD_nslookupEx(const char *host, GD_nslookup_type type, nslookupCompletionCallbackEx callback, const void *data)
Execute a BlackBerry Dynamics name service lookup with a callback extension.
GD_nslookup
void GD_nslookup(const char *host, GD_nslookup_type type, nslookupCompletionCallback callback)
Execute a BlackBerry Dynamics name service lookup.
GD_nslookup_type
enum GD_nslookup_type_t GD_nslookup_type
Enumerated constants for use with the BlackBerry Dynamics name service.
GD_nslookup_type_t
GD_nslookup_type_t
Enumerated constants for use with the BlackBerry Dynamics name service.
Definition: GD_C_NETUtility.h:47
nslookupCompletionCallback
void(* nslookupCompletionCallback)(const char *jsonResponse)
BlackBerry Dynamics name service lookup completion callback.
Definition: GD_C_NETUtility.h:24
GD_nslookup_CNAME
@ GD_nslookup_CNAME
Specify a CNAME lookup.
Definition: GD_C_NETUtility.h:50
nslookupCompletionCallbackEx
void(* nslookupCompletionCallbackEx)(const char *jsonResponse, const void *data)
BlackBerry Dynamics name service lookup completion extended callback.
Definition: GD_C_NETUtility.h:39
GD_nslookup_ARECORD
@ GD_nslookup_ARECORD
Specify an A record lookup.
Definition: GD_C_NETUtility.h:54