Changeset 3447:ded31ab2cdf5 in roaraudio


Ignore:
Timestamp:
02/13/10 15:53:48 (10 years ago)
Author:
phi
Branch:
default
Message:

implemented pa_gettimeofday()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroarpulse/timeval.c

    r3446 r3447  
    3939#include <libroarpulse/libroarpulse.h> 
    4040 
    41 struct timeval *pa_gettimeofday(struct timeval *tv); 
     41struct timeval *pa_gettimeofday(struct timeval *tv) { 
     42#ifdef ROAR_HAVE_GETTIMEOFDAY 
     43 if ( gettimeofday(tv, NULL) == -1 ) { 
     44  return NULL; 
     45 } else { 
     46  return tv; 
     47 } 
     48#else 
     49 return NULL; 
     50#endif 
     51} 
     52 
    4253pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b); 
    4354int pa_timeval_cmp(const struct timeval *a, const struct timeval *b); 
Note: See TracChangeset for help on using the changeset viewer.