Newer
Older

ANA MANZANO RODRIGUEZ
committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <stdlib.h>
#include <stdio.h>
#include <admire.h>
int
main(int argc, char* argv[]) {
if(argc != 3) {
fprintf(stderr, "ERROR: no location provided\n");
fprintf(stderr, "Usage: ADM_finalize_data_operation <REMOTE_IP> <OPERATION_ID>\n");
exit(EXIT_FAILURE);
}
int exit_status = EXIT_SUCCESS;
ADM_server_t server = ADM_server_create("tcp", argv[1]);
ADM_job_t job;
ADM_data_operation_t op_handle;
ADM_data_operation_status_t status;
ADM_return_t ret = ADM_SUCCESS;
if(ret != ADM_SUCCESS) {
fprintf(stdout, "ADM_finalize_data_operation() remote procedure not completed "
"successfully\n");
exit_status = EXIT_FAILURE;
goto cleanup;
}
fprintf(stdout, "ADM_finalize_data_operation() remote procedure completed "
"successfully\n");
cleanup:
ADM_server_destroy(server);
exit(exit_status);
}