123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- /*
- * CDE - Common Desktop Environment
- *
- * Copyright (c) 1993-2012, The Open Group. All rights reserved.
- *
- * These libraries and programs are free software; you can
- * redistribute them and/or modify them under the terms of the GNU
- * Lesser General Public License as published by the Free Software
- * Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * These libraries and programs are distributed in the hope that
- * they will be useful, but WITHOUT ANY WARRANTY; without even the
- * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
- * PURPOSE. See the GNU Lesser General Public License for more
- * details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with these libraries and programs; if not, write
- * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
- * Floor, Boston, MA 02110-1301 USA
- */
- /* $XConsortium: nametbl.h /main/1 1996/04/21 19:24:05 drk $ */
- /*
- * (c) Copyright 1993, 1994 Hewlett-Packard Company
- * (c) Copyright 1993, 1994 International Business Machines Corp.
- * (c) Copyright 1993, 1994 Novell, Inc.
- * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
- */
- #ifndef _NAMETBL_H
- #define _NAMETBL_H
- /*
- * Contain the definition for a hashed name table for attribute names.
- * It is intended to be used by both the library and the daemon to
- * build name tables for calendar attribute names and entry attribute
- * names.
- */
- #include "ansi_c.h"
- #include "csa.h"
- /*
- * NOTE: The first element in names is not used. So a name table
- * with a size of 5 actually contains names in element 1 to 5
- * of names.
- */
- typedef struct {
- void *tbl;
- int size;
- char **names;
- } _DtCmNameTable;
- extern _DtCmNameTable *_DtCm_make_name_table(
- int size,
- char **names);
- extern void _DtCm_free_name_table(_DtCmNameTable *tbl);
- extern CSA_return_code _DtCm_add_name_to_table(
- _DtCmNameTable *tbl,
- int index,
- char *newname);
- extern int _DtCm_get_index_from_table(
- _DtCmNameTable *tbl,
- char *name);
- extern CSA_return_code _DtCmExtendNameTable(
- char *name,
- int index,
- int type,
- _DtCmNameTable *base,
- int basesize,
- char **basenames,
- _DtCmNameTable **tbl,
- int **types);
- #endif /* _NAMETBL_H */
|