Restore xf86getsecs() as not having an ANSI equivalent.

This commit is contained in:
Adam Jackson 2007-12-04 17:36:21 -05:00
parent f8d7729df3
commit 13af2d1efc
2 changed files with 15 additions and 0 deletions

View File

@ -339,6 +339,7 @@ Bool xf86IsUnblank(int mode);
void xf86AddModuleInfo(ModuleInfoPtr info, pointer module);
void xf86DeleteModuleInfo(int idx);
void xf86getsecs(long *, long *);
/* xf86Debug.c */
#ifdef BUILDDEBUG

View File

@ -2957,3 +2957,17 @@ xf86GetMotionEvents(DeviceIntPtr pDev, xTimecoord *buff, unsigned long start,
{
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;
}