DtDbLoad(library call) DtDbLoad(library call)
NAME
DtDbLoad -- load actions and data types database
SYNOPSIS
#include <Dt/Action.h>
void DtDbLoad(void)
DESCRIPTION
The DtDbLoad function loads the actions and data types database into the application. When the function returns, the database has been
loaded.
An environment variable determines the set of directories to be searched. The DtDbLoad function loads all actions and data types defined
in files with a .dt suffix located in these directories.
The directory search path is based on the value of the DTDATABASESEARCHPATH environment variable and internal defaults. DTDATABASESEARCH-
PATH contains a comma-separated list of directories in [host:]/path format. The application must call DtDbLoad before calling any of the
routines that query either the action or data type databases. If called multiple times, the old databases are freed before the new ones
are created.
RETURN VALUE
The DtDbLoad function returns no value.
APPLICATION USAGE
If this function is used in a long-lived application, the application must dynamically reload the databases when they are modified. To do
this, the client must register to receive notification whenever the actions and data types database needs to be modified. It is up to the
application to recall DtDbLoad after receiving notification. This is done with a call to DtDbReloadNotify(3).
If errors are encountered when reading the database files, error messages are written to the user's errorlog file ($HOME/.dt/errorlog).
Records containing errors are not incorporated into the internal database.
SEE ALSO
Dt/Action.h - DtAction(5), DtDbReloadNotify(3), dtdtfile(4).
DtDbLoad(library call)
Check Out this Related Man Page
Dt/Action.h(file formats) Dt/Action.h(file formats)
NAME
Dt/Action.h -- action service definitions
SYNOPSIS
#include <Dt/Action.h>
DESCRIPTION
The Dt/Action.h header defines the following DtActionStatus constants:
DtACTION_OK
DtACTION_INVALID_ID
DtACTION_INVOKED
DtACTION_DONE
DtACTION_CANCELED
DtACTION_FAILED
DtACTION_STATUS_UPDATE
The header defines the following data type through typedef:
typedef unsigned long DtActionInvocationID;
The header defines the following callback prototypes:
typedef void (*DtActionCallbackProc)(DtActionInvocationID id,
XtPointer client_data,
DtActionArg *args,
int argCount,
DtActionStatus status);
typedef void (*DtDbReloadCallbackProc)(XtPointer clientData);
The header defines the following as functions:
void DtDbReloadNotify(DtDbReloadCallbackProc proc,
XtPointer clientData);
void DtDbLoad(void);
Boolean DtActionExists(char *s);
char *DtActionLabel(char *s);
char *DtActionDescription(char *actionName);
char *DtActionIcon(char *actionName);
DtActionInvocationID
DtActionInvoke(Widget w,
char *action,
DtActionFile *args,
int argCount,
char *termOpts,
char *execHost,
char *contextDir,
int useIndicator,
DtActionCallbackProc statusUpdateCb,
XtPointer client_data);
SEE ALSO DtActionDescription(3), DtActionExists(3), DtActionIcon(3), DtActionInvoke(3), DtActionLabel(3), DtActionCallbackProc(3), DtDbLoad(3), DtD-
bReloadNotify(3), dtaction(1).
Dt/Action.h(file formats)
Hi,
I have an application which must use a unified database, the application will run on 4 SCO boxes, so the database will be in one of them and the application in the other 3 servers will access this database on the host machine. This is as a file sharing application in windows. I know this... (0 Replies)
Is there anybody with experience of CADO systems database or Just Ask query language? We have a legacy application which we want to migrate. I can see the data files but where are the database definitions? I have no knowledge of Just Ask except that it was the query langauge used. I don't even know... (3 Replies)