diff options
author | Doug MacEachern <dougm@apache.org> | 2000-08-02 05:26:45 +0000 |
---|---|---|
committer | Doug MacEachern <dougm@apache.org> | 2000-08-02 05:26:45 +0000 |
commit | 1a1463dbfc6e28b6a5852142b0c87d4abe33c3d9 (patch) | |
tree | 4da0bfd73d36292921960aaabc877a57e680b8c4 /test/testdso.c | |
parent | 4dd06339dd5b46bd735c56dc3738146416f52ccf (diff) | |
download | apr-1a1463dbfc6e28b6a5852142b0c87d4abe33c3d9.tar.gz |
prefix libapr functions and types with apr_
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testdso.c')
-rw-r--r-- | test/testdso.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/testdso.c b/test/testdso.c index 110a74f1b..a050c8fde 100644 --- a/test/testdso.c +++ b/test/testdso.c @@ -9,11 +9,11 @@ int main (int argc, char ** argv) { - ap_dso_handle_t *h = NULL; - ap_dso_handle_sym_t func1 = NULL; - ap_dso_handle_sym_t func2 = NULL; - ap_status_t status; - ap_pool_t *cont; + apr_dso_handle_t *h = NULL; + apr_dso_handle_sym_t func1 = NULL; + apr_dso_handle_sym_t func2 = NULL; + apr_status_t status; + apr_pool_t *cont; void (*function)(void); void (*function1)(int); int *retval; @@ -23,19 +23,19 @@ int main (int argc, char ** argv) strcat(filename, "/"); strcat(filename, LIB_NAME); - ap_initialize(); - atexit(ap_terminate); + apr_initialize(); + atexit(apr_terminate); - if (ap_create_pool(&cont, NULL) != APR_SUCCESS) { + if (apr_create_pool(&cont, NULL) != APR_SUCCESS) { fprintf(stderr, "Couldn't allocate context."); exit(-1); } fprintf(stdout,"Trying to load DSO now....................."); fflush(stdout); - if ((status = ap_dso_load(&h, filename, cont)) != APR_SUCCESS){ + if ((status = apr_dso_load(&h, filename, cont)) != APR_SUCCESS){ char my_error[256]; - ap_strerror(status, my_error, sizeof(my_error)); + apr_strerror(status, my_error, sizeof(my_error)); fprintf(stderr, "%s!\n", my_error); exit (-1); } @@ -43,7 +43,7 @@ int main (int argc, char ** argv) fprintf(stdout,"Trying to get the DSO's attention.........."); fflush(stdout); - if (ap_dso_sym(&func1, h, "print_hello") != APR_SUCCESS) { + if (apr_dso_sym(&func1, h, "print_hello") != APR_SUCCESS) { fprintf(stderr, "Failed!\n"); exit (-1); } @@ -54,7 +54,7 @@ int main (int argc, char ** argv) fprintf(stdout,"Saying farewell 5 times...................."); fflush(stdout); - if (ap_dso_sym(&func2, h, "print_goodbye") != APR_SUCCESS) { + if (apr_dso_sym(&func2, h, "print_goodbye") != APR_SUCCESS) { fprintf(stderr, "Failed!\n"); exit (-1); } @@ -65,7 +65,7 @@ int main (int argc, char ** argv) fprintf(stdout,"Checking how many times I said goodbye.."); fflush(stdout); - if (ap_dso_sym(&func1, h, "goodbyes") != APR_SUCCESS) { + if (apr_dso_sym(&func1, h, "goodbyes") != APR_SUCCESS) { fprintf(stderr, "Failed!\n"); exit (-1); } @@ -79,7 +79,7 @@ int main (int argc, char ** argv) } fprintf(stdout,"Trying to unload DSO now..................."); - if (ap_dso_unload(h) != APR_SUCCESS) { + if (apr_dso_unload(h) != APR_SUCCESS) { fprintf(stderr, "Failed!\n"); exit (-1); } @@ -87,7 +87,7 @@ int main (int argc, char ** argv) fprintf(stdout,"Checking it's been unloaded................"); fflush(stdout); - if (ap_dso_sym(&func1, h, "print_hello") == APR_SUCCESS) { + if (apr_dso_sym(&func1, h, "print_hello") == APR_SUCCESS) { fprintf(stderr, "Failed!\n"); exit (-1); } |