Remove ucore_ prefix from headers and source files

This commit is contained in:
Nils O. Selåsdal
2013-03-06 22:22:04 +01:00
parent ee8d9ae19d
commit 8badeaf857
85 changed files with 168 additions and 168 deletions
@@ -1,5 +1,5 @@
#ifndef UCORE_CLOCK_H_
#define UCORE_CLOCK_H_
#ifndef uc_CLOCK_H_
#define uc_CLOCK_H_
#include <sys/time.h>
#include <time.h>
@@ -26,7 +26,7 @@ struct UCoreClock {
/** A cached clock where clock.now() returns
* the cached value. The cache is updated
* from the real_clock whenever ucore_cached_clock_update()
* from the real_clock whenever uc_cached_clock_update()
* is called.
*/
struct UCoreCachedClock {
@@ -40,7 +40,7 @@ struct UCoreCachedClock {
/** A settable clock where clock.now() returns
* the user settable value. The user updates the clock
* with ucore_settable_clock_set().
* with uc_settable_clock_set().
*/
struct UCoreSettableClock {
/** The clock*/
@@ -53,25 +53,25 @@ struct UCoreSettableClock {
/** A clock where now() calls gettimeofday()
*/
extern struct UCoreClock ucore_timeofday_clock;
extern struct UCoreClock uc_timeofday_clock;
/**
* A clock where now() calls time().
* This clock will just have seconds resolution.
*/
extern struct UCoreClock ucore_time_clock;
extern struct UCoreClock uc_time_clock;
/**
* Initialize a cached clock where now() calls time().
* This clock will this just have seconds resolution.
* @param clock clock to initialize
*/
void ucore_cached_clock_init(struct UCoreCachedClock *uclock,
void uc_cached_clock_init(struct UCoreCachedClock *uclock,
struct UCoreClock *real_clock);
/** Update the cached clock from the real_clock
*/
void ucore_cached_clock_update(struct UCoreCachedClock *uclock);
void uc_cached_clock_update(struct UCoreCachedClock *uclock);
/**
@@ -79,12 +79,12 @@ void ucore_cached_clock_update(struct UCoreCachedClock *uclock);
* This clock will this just have seconds resolution.
* @param clock clock to initialize
*/
void ucore_settable_clock_init(struct UCoreSettableClock *uclock);
void uc_settable_clock_init(struct UCoreSettableClock *uclock);
/**
* Set the new timeval this clock will return
**/
void ucore_settable_clock_set_tv(struct UCoreSettableClock *uclock,
void uc_settable_clock_set_tv(struct UCoreSettableClock *uclock,
const struct timeval *tv);
/**
@@ -92,7 +92,7 @@ void ucore_settable_clock_set_tv(struct UCoreSettableClock *uclock,
* Convenience function that takes seconds/microseconds as arguments
* instead of a struct timeval.
**/
void ucore_settable_clock_set(struct UCoreSettableClock *uclock,
void uc_settable_clock_set(struct UCoreSettableClock *uclock,
time_t secs, suseconds_t usecs);
#endif
+1 -1
View File
@@ -1,7 +1,7 @@
#ifndef IO_MUX_H_
#define IO_MUX_H_
#include "ucore_timers.h"
#include "timers.h"
#define MUX_EV_READ (1U << 0x00)
#define MUX_EV_WRITE (1U << 0x01)
+1 -1
View File
@@ -2,7 +2,7 @@
#define IO_MUX_IMPL_H_
#include "iomux.h"
#include "ucore_timers.h"
#include "timers.h"
/** struct for IOMux implementations */
struct IOMux {
@@ -4,7 +4,7 @@
#include <stddef.h>
#include <sys/queue.h>
#include <sys/time.h>
#include "ucore_rbtree.h"
#include "rbtree.h"
struct UCTimer;