Skip to content

Commit ae45954

Browse files
committed
Created aliases for legacy interface.
1 parent aab2343 commit ae45954

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

libIP2Proxy/IP2Proxy.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,7 @@ void IP2Proxy_delete_shm()
203203
IP2Proxy_delete_shared_memory();
204204
}
205205

206-
// Clear memory object
207-
void IP2Proxy_clear_memory()
206+
void IP2Proxy_DB_del_shm()
208207
{
209208
IP2Proxy_delete_shared_memory();
210209
}

libIP2Proxy/IP2Proxy.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ extern "C" {
5454
#endif
5555
#endif
5656

57-
#define API_VERSION 3.1.0
57+
#define API_VERSION 3.2.0
5858
#define API_VERSION_MAJOR 3
59-
#define API_VERSION_MINOR 1
59+
#define API_VERSION_MINOR 2
6060
#define API_VERSION_RELEASE 0
6161
#define API_VERSION_NUMERIC (((API_VERSION_MAJOR * 100) + API_VERSION_MINOR) * 100 + API_VERSION_RELEASE)
6262

@@ -155,7 +155,6 @@ IP2ProxyRecord *IP2Proxy_get_usage_type(IP2Proxy *handler, char *ip);
155155
IP2ProxyRecord *IP2Proxy_is_proxy(IP2Proxy *handler, char *ip);
156156

157157
uint32_t IP2Proxy_close(IP2Proxy *handler);
158-
void IP2Proxy_clear_memory();
159158
void IP2Proxy_free_record(IP2ProxyRecord *record);
160159

161160
/* Private functions */
@@ -168,6 +167,7 @@ uint32_t IP2Proxy_read32(FILE *handle, uint32_t position);
168167
uint8_t IP2Proxy_read8(FILE *handle, uint32_t position);
169168
int32_t IP2Proxy_close_memory(FILE *file);
170169
void IP2Proxy_delete_shm();
170+
void IP2Proxy_DB_del_shm();
171171
void IP2Proxy_delete_shared_memory();
172172
void IP2Proxy_replace(char *target, const char *needle, const char *replacement);
173173

libIP2Proxy/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ include_HEADERS = IP2Proxy.h
88

99
libIP2Proxy_la_SOURCES = IP2Proxy.c
1010

11-
libIP2Proxy_la_LDFLAGS = -module -no-undefined -version-info 1:0:0
11+
libIP2Proxy_la_LDFLAGS = -module -no-undefined -version-info 2:0:0

test/test-IP2Proxy.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ int main ()
5656

5757
IP2Proxy_close(IP2ProxyObj);
5858
IP2Proxy_free_record(record);
59-
IP2Proxy_clear_memory();
6059

6160
return 1;
6261
}

0 commit comments

Comments
 (0)