Restore xf86getsecs() as not having an ANSI equivalent.
This commit is contained in:
parent
f8d7729df3
commit
13af2d1efc
|
@ -339,6 +339,7 @@ Bool xf86IsUnblank(int mode);
|
||||||
|
|
||||||
void xf86AddModuleInfo(ModuleInfoPtr info, pointer module);
|
void xf86AddModuleInfo(ModuleInfoPtr info, pointer module);
|
||||||
void xf86DeleteModuleInfo(int idx);
|
void xf86DeleteModuleInfo(int idx);
|
||||||
|
void xf86getsecs(long *, long *);
|
||||||
|
|
||||||
/* xf86Debug.c */
|
/* xf86Debug.c */
|
||||||
#ifdef BUILDDEBUG
|
#ifdef BUILDDEBUG
|
||||||
|
|
|
@ -2957,3 +2957,17 @@ xf86GetMotionEvents(DeviceIntPtr pDev, xTimecoord *buff, unsigned long start,
|
||||||
{
|
{
|
||||||
return GetMotionHistory(pDev, buff, start, stop, pScreen);
|
return GetMotionHistory(pDev, buff, start, stop, pScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_X_EXPORT void
|
||||||
|
xf86getsecs(long * secs, long * usecs)
|
||||||
|
{
|
||||||
|
struct timeval tv;
|
||||||
|
|
||||||
|
X_GETTIMEOFDAY(&tv);
|
||||||
|
if (secs)
|
||||||
|
*secs = tv.tv_sec;
|
||||||
|
if (usecs)
|
||||||
|
*usecs= tv.tv_usec;
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue