mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-18 03:30:31 +00:00
added function for getting coffee's fd_set address and size
This commit is contained in:
parent
b258a99e22
commit
7e5047012b
@ -32,7 +32,7 @@
|
||||
|
||||
/**
|
||||
* \file
|
||||
* Coffee: A flash file system for memory-contrained sensor systems.
|
||||
* Coffee: A flash file system for memory-constrained sensor systems.
|
||||
* \author
|
||||
* Nicolas Tsiftes <nvt@sics.se>
|
||||
*/
|
||||
@ -46,7 +46,7 @@
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
#define DEBUG 0
|
||||
#define DEBUG 1
|
||||
#if DEBUG
|
||||
#include <stdio.h>
|
||||
#define PRINTF(...) printf(__VA_ARGS__)
|
||||
@ -1189,3 +1189,10 @@ cfs_coffee_format(void)
|
||||
|
||||
return 0;
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void*
|
||||
cfs_coffee_get_fd_set(unsigned *size)
|
||||
{
|
||||
*size = sizeof(coffee_fd_set);
|
||||
return &coffee_fd_set;
|
||||
}
|
||||
|
@ -38,6 +38,8 @@
|
||||
#ifndef CFS_COFFEE_H
|
||||
#define CFS_COFFEE_H
|
||||
|
||||
void *cfs_coffee_get_fd_set(unsigned *size);
|
||||
|
||||
/**
|
||||
* \file
|
||||
* Header for the Coffee file system.
|
||||
|
Loading…
x
Reference in New Issue
Block a user