dtcm: Resolve CID 87822
[oweals/cde.git] / cde / programs / dtcm / libDtCmP / cmfns.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: cmfns.h /main/3 1995/11/03 10:37:28 rswiston $ */
24 /*      @(#)cmfns.h 1.3 94/11/07 SMI    */
25
26 /*                                                                      *
27  * (c) Copyright 1993, 1994 Hewlett-Packard Company                     *
28  * (c) Copyright 1993, 1994 International Business Machines Corp.       *
29  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.                      *
30  * (c) Copyright 1993, 1994 Novell, Inc.                                *
31  */
32
33
34 #ifndef _CMFNS_H
35 #define _CMFNS_H
36
37 #ifdef FNS
38
39 #include "dtfns.h"
40
41 #define CMFNS_CALENDAR_SERVICE  "calendar"
42 #define CMFNS_CALENDAR_TYPE     "SUNW_fns_calendar"
43 #define CMFNS_CALENDAR_ADDR_TYPE "SUNW_cal_str"
44
45 #ifdef FNS_DEMO
46
47 #define FNS_FILE ".FNSName"
48 int cmfns_name_from_file(const char *path, char *name, int len);
49
50 #endif /* FNS_DEMO */
51
52 extern int cmfns_use_fns(Props *);
53 extern int cmfns_lookup_calendar(const char *name, char *addr_buf,
54                                  int addr_size);
55 extern int cmfns_description(const char *, char *, int);
56 extern int cmfns_register_calendar(const char *name, const char *calendar);
57
58 #endif /* FNS */
59
60 #endif /* _CMFNS_H */
61