src/protocols/zephyr/ZAsyncLocate.c

changeset 10867
b39f9b646d6c
parent 8791
655f64e6d1e2
child 11105
842fa517e08c
equal deleted inserted replaced
10866:40eab743e22b 10867:b39f9b646d6c
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;
58 58
59 return(ZERR_NONE); 59 return(ZERR_NONE);
60 } 60 }
61 61
62 Code_t ZParseLocations(notice,zald,nlocs,user) 62 Code_t ZParseLocations(notice,zald,nlocs,user)
63 register ZNotice_t *notice; 63 ZNotice_t *notice;
64 register ZAsyncLocateData_t *zald; 64 ZAsyncLocateData_t *zald;
65 int *nlocs; 65 int *nlocs;
66 char **user; 66 char **user;
67 { 67 {
68 char *ptr, *end; 68 char *ptr, *end;
69 int i; 69 int i;
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);

mercurial