| 2 * It contains source for asynchronous location functions. |
2 * It contains source for asynchronous location functions. |
| 3 * |
3 * |
| 4 * Created by: Marc Horowitz |
4 * Created by: Marc Horowitz |
| 5 * |
5 * |
| 6 * $Source$ |
6 * $Source$ |
| 7 * $Author: chipx86 $ |
7 * $Author: thekingant $ |
| 8 * |
8 * |
| 9 * Copyright (c) 1990,1991 by the Massachusetts Institute of Technology. |
9 * Copyright (c) 1990,1991 by the Massachusetts Institute of Technology. |
| 10 * For copying and distribution information, see the file |
10 * For copying and distribution information, see the file |
| 11 * "mit-copyright.h". |
11 * "mit-copyright.h". |
| 12 */ |
12 */ |
| 13 /* $Header$ */ |
13 /* $Header$ */ |
| 14 |
14 |
| 15 #include "internal.h" |
15 #include "internal.h" |
| 16 |
16 |
| 17 #ifndef lint |
17 #ifndef lint |
| 18 static const char rcsid_ZAsyncLocate_c[] = "$Id: ZAsyncLocate.c 9553 2004-04-24 09:00:37Z chipx86 $"; |
18 static const char rcsid_ZAsyncLocate_c[] = "$Id: ZAsyncLocate.c 12553 2005-04-25 01:53:01Z thekingant $"; |
| 19 #endif |
19 #endif |
| 20 |
20 |
| 21 Code_t ZRequestLocations(user, zald, kind, auth) |
21 Code_t ZRequestLocations(user, zald, kind, auth) |
| 22 const char *user; |
22 const char *user; |
| 23 register ZAsyncLocateData_t *zald; |
23 ZAsyncLocateData_t *zald; |
| 24 ZNotice_Kind_t kind; /* UNSAFE, UNACKED, or ACKED */ |
24 ZNotice_Kind_t kind; /* UNSAFE, UNACKED, or ACKED */ |
| 25 Z_AuthProc auth; |
25 Z_AuthProc auth; |
| 26 { |
26 { |
| 27 int retval; |
27 int retval; |
| 28 ZNotice_t notice; |
28 ZNotice_t notice; |
| 158 return(ZCompareUID(&(notice->z_multiuid), |
158 return(ZCompareUID(&(notice->z_multiuid), |
| 159 &(((ZAsyncLocateData_t *) zald)->uid))); |
159 &(((ZAsyncLocateData_t *) zald)->uid))); |
| 160 } |
160 } |
| 161 |
161 |
| 162 void ZFreeALD(zald) |
162 void ZFreeALD(zald) |
| 163 register ZAsyncLocateData_t *zald; |
163 ZAsyncLocateData_t *zald; |
| 164 { |
164 { |
| 165 if (!zald) return; |
165 if (!zald) return; |
| 166 |
166 |
| 167 if (zald->user) free(zald->user); |
167 if (zald->user) free(zald->user); |
| 168 if (zald->version) free(zald->version); |
168 if (zald->version) free(zald->version); |