/usr/lib/emboss/include/ajnam.h is in emboss-lib 6.6.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 | /* @include ajnam *************************************************************
**
** AJAX nam functions
**
** Creates a hash table of initial values and allow access to this
** via the routines ajNamDatabase and ajNamGetValueS.
**
** @author Copyright (C) 1998 Ian Longden
** @version $Revision: 1.49 $
** @modified 2000-2011 Peter Rice
** @modified $Date: 2013/01/24 15:31:46 $ by $Author: rice $
** @@
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; either
** version 2.1 of the License, or (at your option) any later version.
**
** This library is distributed in the hope that it 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 this library; if not, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
** MA 02110-1301, USA.
**
******************************************************************************/
#ifndef AJNAM_H
#define AJNAM_H
/* ========================================================================= */
/* ============================= include files ============================= */
/* ========================================================================= */
#include "ajdefine.h"
#include "ajfile.h"
#include "ajquerydata.h"
AJ_BEGIN_DECLS
/* ========================================================================= */
/* =============================== constants =============================== */
/* ========================================================================= */
#define AJMETHOD_ENTRY 1
#define AJMETHOD_QUERY 2
#define AJMETHOD_ALL 4
/* ========================================================================= */
/* ============================== public data ============================== */
/* ========================================================================= */
/*
** Prototype definitions
*/
AjBool ajNamDatabase(const AjPStr name);
AjBool ajNamAliasDatabase(AjPStr *Pname);
AjBool ajNamServer(const AjPStr name);
AjBool ajNamAliasServer(AjPStr *Pname, const AjPStr server);
AjBool ajNamDatabaseServer(const AjPStr name, const AjPStr server);
AjPList ajNamDbGetAttrlist(const AjPStr name);
AjPList ajNamDbGetAttrlistSvr(const AjPStr name, const AjPStr svrname);
AjBool ajNamDbGetAttrC(const AjPStr name, const char *attribute,
AjPStr *value);
AjBool ajNamDbGetAttrS(const AjPStr name, const AjPStr attribute,
AjPStr *value);
AjBool ajNamDbDetails(const AjPStr name, AjPStr* type,
AjBool* id, AjBool* qry, AjBool* all,
AjPStr* comment, AjPStr* release,
AjPStr* methods, AjPStr* defined);
AjBool ajNamDbDetailsSvr(const AjPStr name,const AjPStr svrname, AjPStr* type,
AjBool* id, AjBool* qry, AjBool* all,
AjPStr* comment, AjPStr* release,
AjPStr* methods, AjPStr* defined);
AjBool ajNamSvrGetAttrC(const AjPStr name, const char *attribute,
AjPStr *value);
AjBool ajNamSvrGetAttrS(const AjPStr name, const AjPStr attribute,
AjPStr *value);
ajuint ajNamDbGetAttrSpecialC(const AjPStr name, const char *attribute,
AjPStr* value);
ajuint ajNamDbGetAttrSpecialS(const AjPStr name, const AjPStr attribute,
AjPStr* value);
ajuint ajNamSvrGetAttrSpecialC(const AjPStr name, const char *attribute,
AjPStr* value);
ajuint ajNamSvrGetAttrSpecialS(const AjPStr name, const AjPStr attribute,
AjPStr* value);
AjPList ajNamSvrGetAttrlist(const AjPStr name);
AjBool ajNamSvrGetdbAttrC(const AjPStr name, const AjPStr dbname,
const char *attribute,
AjPStr *value);
AjBool ajNamSvrGetdbAttrS(const AjPStr name, const AjPStr dbname,
const AjPStr attribute,
AjPStr *value);
ajuint ajNamSvrGetdbAttrSpecialC(const AjPStr name, const AjPStr dbname,
const char *attribute,
AjPStr *value);
ajuint ajNamSvrGetdbAttrSpecialS(const AjPStr name, const AjPStr dbname,
const AjPStr attribute,
AjPStr *value);
AjBool ajNamSvrDetails(const AjPStr name, AjPStr* type, AjPStr *scope,
AjBool* id, AjBool* qry, AjBool* all,
AjPStr* comment, AjPStr *version,
AjPStr* methods, AjPStr* defined,
AjPStr* cachedirectory, AjPStr* cachefile,
AjPStr* url);
AjBool ajNamDbGetDbalias(const AjPStr dbname, AjPStr* dbalias);
AjBool ajNamDbGetDbaliasTest(const AjPStr dbname, AjPStr* dbalias);
AjBool ajNamDbGetIndexdir(const AjPStr dbname, AjPStr* indexdir);
AjBool ajNamDbGetType(const AjPStr dbname, ajuint *itype);
AjBool ajNamDbGetUrl(const AjPStr dbname, AjPStr* url);
AjBool ajNamDbData(AjPQuery qry, ajuint argc, ...);
AjBool ajNamDbQuery(AjPQuery qry);
AjBool ajNamFileQuery(AjPQuery qry);
AjBool ajNamQuerySetDbalias(AjPQuery qry);
const char* ajNamQueryGetDatatypeC(const AjPQuery qry);
const AjPStr ajNamQueryGetUrl(const AjPQuery qry);
AjBool ajNamDbTest(const AjPStr dbname);
AjBool ajNamSvrGetDbalias(const AjPStr svrname, AjPStr* svralias);
AjBool ajNamSvrGetUrl(const AjPStr svrname, AjPStr* url);
AjBool ajNamSvrData(AjPQuery qry, ajuint argc, ...);
AjBool ajNamSvrQuery(AjPQuery qry);
AjBool ajNamSvrTest(const AjPStr svrname);
ajuint ajNamSvrCount(const AjPStr svrname);
void ajNamSvrListFindAliases(const AjPStr server, const AjPStr dbname,
AjPList dbnames);
void ajNamSvrListListAliases(const AjPStr server, AjPList dbnames);
void ajNamSvrListListDatabases(const AjPStr server, AjPList dbnames);
void ajNamDebugOrigin(void);
void ajNamDebugServers(void);
void ajNamDebugDatabases(void);
void ajNamDebugResources(void);
void ajNamDebugVariables(void);
void ajNamDebugAliases(void);
void ajNamExit(void);
AjBool ajNamGetAliasC(const char* name, AjPStr* value);
AjBool ajNamGetAliasS(const AjPStr namestr, AjPStr* value);
AjBool ajNamGetenvC(const char* name, AjPStr* value);
AjBool ajNamGetenvS(const AjPStr name, AjPStr* value);
AjBool ajNamGetValueC(const char *name, AjPStr* value);
AjBool ajNamGetValueS(const AjPStr name, AjPStr* value);
void ajNamInit(const char* prefix);
AjBool ajNamIsDbname(const AjPStr name);
void ajNamListFindAliases(const AjPStr dbname, AjPList dbnames);
void ajNamListListAliases(AjPList dbnames);
void ajNamListListDatabases(AjPList dbnames);
void ajNamListListResources(AjPList dbnames);
void ajNamListListServers(AjPList svrnames);
void ajNamPrintSvrAttr(AjPFile outf, AjBool full);
void ajNamPrintDbAttr(AjPFile outf, AjBool full);
void ajNamPrintRsAttr(AjPFile outf, AjBool full);
AjBool ajNamResolve(AjPStr* name);
const AjPStr ajNamValueRootdir(void);
const AjPStr ajNamValueBasedir(void);
const AjPStr ajNamValueInstalldir(void);
const AjPStr ajNamValuePackage(void);
const AjPStr ajNamValueSystem(void);
const AjPStr ajNamValueVersion(void);
AjBool ajNamRsAttrValueS(const AjPStr name, const AjPStr attribute,
AjPStr *value);
AjBool ajNamRsAttrValueC(const char *name, const char *attribute,
AjPStr *value);
AjBool ajNamRsListValue(const AjPStr name, AjPStr *value);
AjBool ajNamSetControl(const char* optionName);
/*
** End of prototype definitions
*/
#ifdef WIN32
#ifdef AJAXDLL_EXPORTS
__declspec(dllexport) const char* EMBOSSWINROOT_ENVVAR;
#else
__declspec(dllimport) const char* EMBOSSWINROOT_ENVVAR;
#endif
#endif
#ifdef AJ_COMPILE_DEPRECATED_BOOK
#endif /* AJ_COMPILE_DEPRECATED_BOOK */
#ifdef AJ_COMPILE_DEPRECATED
__deprecated AjBool ajNamRsAttrValue(const AjPStr name, const AjPStr attribute,
AjPStr *value);
__deprecated AjBool ajNamGetenv(const AjPStr name, AjPStr* value);
__deprecated AjBool ajNamGetValue(const AjPStr name, AjPStr* value);
__deprecated AjBool ajNamRootInstall(AjPStr* root);
__deprecated AjBool ajNamRoot(AjPStr* root);
__deprecated AjBool ajNamRootBase(AjPStr* rootbase);
__deprecated AjBool ajNamRootPack(AjPStr* pack);
__deprecated AjBool ajNamRootVersion(AjPStr* version);
#endif /* AJ_COMPILE_DEPRECATED */
AJ_END_DECLS
#endif /* !AJNAM_H */
|