atnds.h
Go to the documentation of this file.
1 /* Emacs mode: -*- C -*- */
2 
3 /*
4  * Copyright (c) 2005-2017, Isode Limited, London, England.
5  * All rights reserved.
6  *
7  * Acquisition and use of this software and related materials for any
8  * purpose requires a written licence agreement from Isode
9  * Limited, or a written licence from an organisation licenced by Isode
10  * Limited to grant such a licence.
11  *
12  */
13 
14 /*
15  * atnds.h
16  *
17  * ATN support functions that make use of the ATN directory to:
18  *
19  * o Convert between AFTN and AMHS address formats.
20  * o Retrieve the entries associated with an end user (AMHS/AFTN terminal).
21  *
22  */
23 
24 /*
25  *
26  *
27  * @VERSION@
28  */
29 
30 #ifndef ISODE_ATNDIR_H
31 #define ISODE_ATNDIR_H
32 
33 #include <isode/ds/dsapi/dsapi.h>
34 #include <isode/ds/atnds/atnds_cdecl.h>
35 
124 LIBATNDS_CDECL
125 void ATNds_free (
126  void *ptr
127 );
128 
147 LIBATNDS_CDECL
148 DS_Status ATNds_AFTN2AMHS (
149  DS_Session *session,
150  const DS_DN *registry_dn,
151  const char *aftn_addr,
152  char **orbuf_p,
153  size_t *orbuf_len_p,
154  DS_DN **userdn_p
155 );
156 
167 LIBATNDS_CDECL
168 DS_Status ATNds_AMHS2AFTN (
169  DS_Session *session,
170  const DS_DN *registry_dn,
171  const char *x400_or_addr,
172  char *aftn_buf,
173  DS_DN **userdn_p
174 );
175 
178 #endif /* ISODE_ATNDIR_H */
DS_Status ATNds_AFTN2AMHS(DS_Session *session, const DS_DN *registry_dn, const char *aftn_addr, char **orbuf_p, size_t *orbuf_len_p, DS_DN **userdn_p)
Convert an AFTN address to the AMHS O/R address. If the user has an associated directory entry the di...
void ATNds_free(void *ptr)
Free a buffer which has been returned by ATNds_AFTN2AMHS or ATNds_AMHS2AFTN.
DS_Status ATNds_AMHS2AFTN(DS_Session *session, const DS_DN *registry_dn, const char *x400_or_addr, char *aftn_buf, DS_DN **userdn_p)
Return the AFTN address associated with the given AMHS O/R address. If the user has an associated dir...