Add missing prototypes and includes

This commit is contained in:
Nils O. Selåsdal
2014-10-26 14:27:26 +01:00
parent 9bd1336d26
commit fe3e4d8e3c
5 changed files with 13 additions and 0 deletions
+2
View File
@@ -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
+7
View File
@@ -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
+2
View File
@@ -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
View File
@@ -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)
{ {
+1
View File
@@ -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