Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
avr-pager
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yids
avr-pager
Commits
16b8cc84
Commit
16b8cc84
authored
Nov 30, 2016
by
yids
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some ifndefs for arduino
parent
e0318d77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
libs/pagerlib/pagerlib.c
libs/pagerlib/pagerlib.c
+12
-4
No files found.
libs/pagerlib/pagerlib.c
View file @
16b8cc84
#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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment