mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
DtSvc/DtUtil1: fix implicit function declarations
This commit is contained in:
parent
f2caa218b2
commit
951ae0d327
16 changed files with 68 additions and 10 deletions
|
@ -108,6 +108,23 @@ extern char * _DtStripSpaces(
|
||||||
char * string) ;
|
char * string) ;
|
||||||
extern char * _DtDbPathIdToString( DtDbPathId pathId) ;
|
extern char * _DtDbPathIdToString( DtDbPathId pathId) ;
|
||||||
|
|
||||||
|
extern int _DtActDeleteChildRec( _DtActInvRecT *invp, _DtActChildRecT *childp);
|
||||||
|
extern int _DtActionCommandInvoke(
|
||||||
|
long wintype,
|
||||||
|
char * cwdHost,
|
||||||
|
char * cwdDir,
|
||||||
|
char * execString,
|
||||||
|
char * termOpts,
|
||||||
|
char * execHost,
|
||||||
|
char * procId,
|
||||||
|
char * tmpFiles,
|
||||||
|
void (*success_proc)(),
|
||||||
|
void *success_data,
|
||||||
|
void (*failure_proc)(),
|
||||||
|
void *failure_data);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define _MAX_MAP_ATTEMPTS 100 /* Maximum nuber of "MAPS" that will
|
#define _MAX_MAP_ATTEMPTS 100 /* Maximum nuber of "MAPS" that will
|
||||||
be done. */
|
be done. */
|
||||||
#define _DT_ACTION_MAX_CLOSE_TRIES 5
|
#define _DT_ACTION_MAX_CLOSE_TRIES 5
|
||||||
|
|
|
@ -94,6 +94,10 @@ static void _DtActFreeChildRec( _DtActChildRecT *childp);
|
||||||
#ifndef P_tmpdir
|
#ifndef P_tmpdir
|
||||||
#define P_tmpdir "/var/tmp"
|
#define P_tmpdir "/var/tmp"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern void _DtFreeRequest(ActionRequest *request );
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
* _DtBasename -- utiltiy function to return a pointer to a
|
* _DtBasename -- utiltiy function to return a pointer to a
|
||||||
* string containing the basename of a file name. It doesn't
|
* string containing the basename of a file name. It doesn't
|
||||||
|
|
|
@ -133,6 +133,9 @@ static int DtCmdGetWindowType(
|
||||||
unsigned long windowTypeMask);
|
unsigned long windowTypeMask);
|
||||||
static void _DtCmdInitializeErrorMessages(void);
|
static void _DtCmdInitializeErrorMessages(void);
|
||||||
|
|
||||||
|
extern void _DtEnvMapForRemote (char *targetHost);
|
||||||
|
extern void _DtEnvRestoreLocal (void);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Command invocatin error messages.
|
* Command invocatin error messages.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -103,6 +103,8 @@ extern void _DtDtsDAConverter(DtDtsDbField * fields,
|
||||||
extern void _DtDtsSeqReset(void);
|
extern void _DtDtsSeqReset(void);
|
||||||
extern int _DtDtsNextDCSeq(void);
|
extern int _DtDtsNextDCSeq(void);
|
||||||
extern int _DtDtsNextDASeq(void);
|
extern int _DtDtsNextDASeq(void);
|
||||||
|
extern int _DtDtsMMUnLoad(void);
|
||||||
|
extern void _DtFreeActionDB(void);
|
||||||
|
|
||||||
char **_DtsDbListDb(void);
|
char **_DtsDbListDb(void);
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
#include <Xm/DragDrop.h>
|
#include <Xm/DragDrop.h>
|
||||||
#include <Xm/DropTrans.h>
|
#include <Xm/DropTrans.h>
|
||||||
|
#include <Xm/AtomMgr.h>
|
||||||
#include <Dt/UserMsg.h>
|
#include <Dt/UserMsg.h>
|
||||||
#include "Dnd.h"
|
#include "Dnd.h"
|
||||||
#include "DndP.h"
|
#include "DndP.h"
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
#include <Xm/DragC.h>
|
#include <Xm/DragC.h>
|
||||||
#include <Xm/DragCP.h>
|
#include <Xm/DragCP.h>
|
||||||
#include <Xm/DragOverSP.h>
|
#include <Xm/DragOverSP.h>
|
||||||
|
#include <Dt/Wsm.h>
|
||||||
#include "Dnd.h"
|
#include "Dnd.h"
|
||||||
#include "DndP.h"
|
#include "DndP.h"
|
||||||
#include "DtSvcLock.h"
|
#include "DtSvcLock.h"
|
||||||
|
@ -76,6 +77,14 @@ static void dndDragDropFinishCallback(Widget, XtPointer, XtPointer);
|
||||||
static void dndTopLevelEnterCallback(Widget, XtPointer, XtPointer);
|
static void dndTopLevelEnterCallback(Widget, XtPointer, XtPointer);
|
||||||
static void dndTopLevelLeaveCallback(Widget, XtPointer, XtPointer);
|
static void dndTopLevelLeaveCallback(Widget, XtPointer, XtPointer);
|
||||||
|
|
||||||
|
extern int _DtDndCountVarArgs(va_list vaList);
|
||||||
|
extern void _DtDndArgListFromVarArgs(va_list vaList,
|
||||||
|
Cardinal maxArgs,
|
||||||
|
ArgList *argListReturn,
|
||||||
|
Cardinal *argCountReturn);
|
||||||
|
extern void _XmDragOverChange(Widget w,
|
||||||
|
unsigned char dropSiteStatus);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Drag Initiator Resources
|
* Drag Initiator Resources
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -114,6 +114,14 @@ static XtResource dropResources[] = {
|
||||||
XtRImmediate, (XtPointer)False },
|
XtRImmediate, (XtPointer)False },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extern int _DtDndCountVarArgs(va_list vaList);
|
||||||
|
extern void _DtDndArgListFromVarArgs(va_list vaList,
|
||||||
|
Cardinal maxArgs,
|
||||||
|
ArgList *argListReturn,
|
||||||
|
Cardinal *argCountReturn);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#undef Offset
|
#undef Offset
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -60,7 +60,10 @@
|
||||||
#include <Dt/UserMsg.h>
|
#include <Dt/UserMsg.h>
|
||||||
#include "DtSvcLock.h"
|
#include "DtSvcLock.h"
|
||||||
|
|
||||||
extern char *strdup(const char *);
|
extern int _MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
|
||||||
|
const char *CacheFile);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define PADMEM 10
|
#define PADMEM 10
|
||||||
|
|
||||||
|
|
|
@ -73,9 +73,7 @@
|
||||||
#include <Dt/Dts.h>
|
#include <Dt/Dts.h>
|
||||||
#include "DtSvcLock.h"
|
#include "DtSvcLock.h"
|
||||||
|
|
||||||
#if !defined(__linux__)
|
extern int _DtDtsMMUnLoad(void);
|
||||||
extern char *strdup(const char *);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static int cur_dc_count = 0;
|
static int cur_dc_count = 0;
|
||||||
static int cur_da_count = 0;
|
static int cur_da_count = 0;
|
||||||
|
|
|
@ -65,6 +65,11 @@ static size_t mmaped_size = 0;
|
||||||
static int mmaped_fd = 0;
|
static int mmaped_fd = 0;
|
||||||
static DtDtsMMHeader *head = 0;
|
static DtDtsMMHeader *head = 0;
|
||||||
|
|
||||||
|
int _DtDtsMMUnLoad(void);
|
||||||
|
|
||||||
|
extern void _DtDbFillVariables (char **line );
|
||||||
|
extern void _DtDtsClear(void);
|
||||||
|
|
||||||
void *
|
void *
|
||||||
_DtDtsMMGetPtr(int index)
|
_DtDtsMMGetPtr(int index)
|
||||||
{
|
{
|
||||||
|
|
|
@ -219,7 +219,7 @@ bool(int i)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
check_content(char *val1, char *val2)
|
static int check_content(char *val1, char *val2)
|
||||||
{
|
{
|
||||||
char *v1 = strdup(val1);
|
char *v1 = strdup(val1);
|
||||||
char *v2 = strdup(val2);
|
char *v2 = strdup(val2);
|
||||||
|
@ -462,7 +462,7 @@ cde_dc_field_compare(DtDtsDbField ** a, DtDtsDbField ** b)
|
||||||
cde_ft_field_value((*b)->fieldName));
|
cde_ft_field_value((*b)->fieldName));
|
||||||
}
|
}
|
||||||
|
|
||||||
cde_da_compare(DtDtsDbRecord ** a, DtDtsDbRecord ** b)
|
int cde_da_compare(DtDtsDbRecord ** a, DtDtsDbRecord ** b)
|
||||||
{
|
{
|
||||||
int results = ((*a)->recordName) - ((*b)->recordName);
|
int results = ((*a)->recordName) - ((*b)->recordName);
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,10 @@ static DtShmProtoIntList int_handle = 0;
|
||||||
|
|
||||||
#define QtB(a) _DtShmProtoAddStrtab(shm_handle, XrmQuarkToString(a), &isnew)
|
#define QtB(a) _DtShmProtoAddStrtab(shm_handle, XrmQuarkToString(a), &isnew)
|
||||||
|
|
||||||
|
/* DtsMM.c */
|
||||||
|
extern int _DtDtsMMPathHash(DtDirPaths *dirs);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
_MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
|
_MMWriteDb(DtDirPaths *dirs, int num_db, DtDtsDbDatabase **db_list,
|
||||||
const char *CacheFile)
|
const char *CacheFile)
|
||||||
|
@ -724,7 +728,7 @@ write_db(DtDtsMMHeader *header, void *index, int size, const char *CacheFile)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_DtActionCompareRecordBoson(
|
intptr_t _DtActionCompareRecordBoson(
|
||||||
DtDtsMMRecord *record1,
|
DtDtsMMRecord *record1,
|
||||||
DtDtsMMRecord *record2 )
|
DtDtsMMRecord *record2 )
|
||||||
{
|
{
|
||||||
|
|
|
@ -54,6 +54,7 @@
|
||||||
#include <X11/Intrinsic.h>
|
#include <X11/Intrinsic.h>
|
||||||
#include <Saver.h>
|
#include <Saver.h>
|
||||||
#include <SaverP.h>
|
#include <SaverP.h>
|
||||||
|
#include <Dt/Action.h>
|
||||||
#include "DtSvcLock.h"
|
#include "DtSvcLock.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -223,8 +224,8 @@ _DtSaverStart(
|
||||||
/*
|
/*
|
||||||
* Launch saver.
|
* Launch saver.
|
||||||
*/
|
*/
|
||||||
DtActionInvoke(wAction, saverAction, NULL, NULL,
|
DtActionInvoke(wAction, saverAction, NULL, 0,
|
||||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
NULL, NULL, NULL, 0, NULL, NULL);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return array as state information.
|
* Return array as state information.
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
#include <Dt/Wsm.h>
|
#include <Dt/Wsm.h>
|
||||||
#include <Dt/WsmM.h>
|
#include <Dt/WsmM.h>
|
||||||
|
#include <Dt/SvcTT.h>
|
||||||
#include "WsmP.h"
|
#include "WsmP.h"
|
||||||
#include <Dt/Service.h>
|
#include <Dt/Service.h>
|
||||||
#include <Xm/Xm.h>
|
#include <Xm/Xm.h>
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#include <Dt/Service.h>
|
#include <Dt/Service.h>
|
||||||
#include <Dt/Wsm.h>
|
#include <Dt/Wsm.h>
|
||||||
#include <Dt/WsmM.h>
|
#include <Dt/WsmM.h>
|
||||||
|
#include <Dt/SvcTT.h>
|
||||||
#include "WsmP.h"
|
#include "WsmP.h"
|
||||||
#include "DtSvcLock.h"
|
#include "DtSvcLock.h"
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,8 @@ _DtShmProtoInitInttab(int sizeguess)
|
||||||
return((void*)ptr);
|
return((void*)ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
_DtShmProtoAddInttab(DtShmProtoInttab intlist, unsigned int keyin, int datain)
|
int _DtShmProtoAddInttab(DtShmProtoInttab intlist, unsigned int keyin,
|
||||||
|
int datain)
|
||||||
{
|
{
|
||||||
intlist_t * ptr = (intlist_t *) intlist;
|
intlist_t * ptr = (intlist_t *) intlist;
|
||||||
int ** data;
|
int ** data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue