Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fix(migration-to-binding-v3.sed): add a legacy call replacing rule
[src/app-framework-binder.git]
/
src
/
afb-cred.h
diff --git
a/src/afb-cred.h
b/src/afb-cred.h
index
6f8173f
..
2fc8e45
100644
(file)
--- a/
src/afb-cred.h
+++ b/
src/afb-cred.h
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 201
7
"IoT.bzh"
+ * Copyright (C) 201
5-2020
"IoT.bzh"
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* Author: José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@
-19,6
+19,8
@@
#include <sys/types.h>
#include <sys/types.h>
+struct afb_context;
+
struct afb_cred
{
int refcount;
struct afb_cred
{
int refcount;
@@
-28,6
+30,7
@@
struct afb_cred
const char *user;
const char *label;
const char *id;
const char *user;
const char *label;
const char *id;
+ const char *exported;
};
extern struct afb_cred *afb_cred_current();
};
extern struct afb_cred *afb_cred_current();
@@
-36,4
+39,5
@@
extern struct afb_cred *afb_cred_create_for_socket(int fd);
extern struct afb_cred *afb_cred_addref(struct afb_cred *cred);
extern void afb_cred_unref(struct afb_cred *cred);
extern struct afb_cred *afb_cred_addref(struct afb_cred *cred);
extern void afb_cred_unref(struct afb_cred *cred);
-
+extern const char *afb_cred_export(struct afb_cred *cred);
+extern struct afb_cred *afb_cred_import(const char *string);