Add missing prototypes and includes
This commit is contained in:
@@ -28,6 +28,8 @@ uc_pjwhash(const char *str,size_t len);
|
|||||||
uint32_t
|
uint32_t
|
||||||
uc_sax_hash(void *key, size_t len);
|
uc_sax_hash(void *key, size_t len);
|
||||||
|
|
||||||
|
unsigned long
|
||||||
|
uc_sdbmhash(const unsigned char *str);
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -137,6 +137,13 @@ struct UCTimers *iomux_get_timers(struct IOMux *mux);
|
|||||||
* or indirectly by the UCTimers provieded in a timer callback handler.
|
* or indirectly by the UCTimers provieded in a timer callback handler.
|
||||||
*/
|
*/
|
||||||
struct IOMux *iomux_from_timers(struct UCTimers *timers);
|
struct IOMux *iomux_from_timers(struct UCTimers *timers);
|
||||||
|
|
||||||
|
|
||||||
|
/** Get the clock associated with the IOMux. This is the clock used
|
||||||
|
* used to drive the UCTimers associated with this IOMux
|
||||||
|
*/
|
||||||
|
struct UCoreClock *iomux_get_clock(struct IOMux *mux);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
#include "ucore/hash.h"
|
||||||
|
|
||||||
unsigned long
|
unsigned long
|
||||||
uc_sdbmhash(const unsigned char *str)
|
uc_sdbmhash(const unsigned char *str)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "ucore/string.h"
|
||||||
|
|
||||||
size_t uc_strlcpy(char *restrict dst, const char *restrict src, size_t max)
|
size_t uc_strlcpy(char *restrict dst, const char *restrict src, size_t max)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include "ucore/supervisor.h"
|
||||||
|
|
||||||
|
|
||||||
#define CLEAN_EXIT 11
|
#define CLEAN_EXIT 11
|
||||||
|
|||||||
Reference in New Issue
Block a user