afb-session: Add language to session
[src/app-framework-binder.git] / src / afb-session.h
index 8e2ee3d..bad07ee 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016, 2017 "IoT.bzh"
+ * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -50,3 +50,5 @@ extern void *afb_session_get_cookie(struct afb_session *session, const void *key
 extern void *afb_session_cookie(struct afb_session *session, const void *key, void *(*makecb)(void *closure), void (*freecb)(void *item), void *closure, int replace);
 extern int afb_session_set_cookie(struct afb_session *session, const void *key, void *value, void (*freecb)(void*));
 
+extern int afb_session_set_language(struct afb_session *session, const char *lang);
+extern const char *afb_session_get_language(struct afb_session *session, const char *lang);