Commit 16b8cc84 authored by yids's avatar yids

some ifndefs for arduino

parent e0318d77
#include <fcntl.h>
#include <dirent.h>
#ifndef ARDUINO
#include <fcntl.h>
#include <dirent.h>
#include <sys/stat.h>
#include <sys/types.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
......@@ -7,8 +13,6 @@
#include <stdlib.h>
#include "things.h"
#include "pagerlib.h"
#include <sys/stat.h>
#include <sys/types.h>
#ifndef ARDUINO
......@@ -155,6 +159,7 @@ inline int pl_send_message(struct pl_ctx *ctx) {
return 0;
}
#ifndef ARDUINO
/* pl_send_message_fifo(struct pl_ctx * ctx, char *fifo)
* sends the pagermessage to a fifo
*/
......@@ -168,6 +173,7 @@ int pl_send_message_fifo(struct pl_ctx *ctx, char *fifo)
//unlink(fifo);
return 0;
}
#endif
int pl_receive_message(struct pl_ctx * ctx)
{
......@@ -331,6 +337,7 @@ char * pl_load_public_key(char *filename)
#endif
}
#ifndef ARDUINO
int pl_load_public_keys_from_folder(struct pl_ctx *ctx, char const *folder)
{
printf("opening pubkey folder...\n");
......@@ -365,6 +372,7 @@ int pl_load_public_keys_from_folder(struct pl_ctx *ctx, char const *folder)
}
}
}
#endif
int pl_load_key_in_list(struct pl_ctx *ctx, struct pl_keypair *key)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment