summaryrefslogtreecommitdiffstats
path: root/AudioLogic/AudioLogicLib.h
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-03-08 14:23:35 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-03-08 14:23:35 +0100
commit1393b5d318e22dbd1625692847a51c27932fd442 (patch)
tree19fd954a04456be8e1c7ebde5b3aaefbe08dbcad /AudioLogic/AudioLogicLib.h
parent0964e7da8576b8761e8d3d16b50cc842406c7e67 (diff)
Events Partially Working
Diffstat (limited to 'AudioLogic/AudioLogicLib.h')
-rw-r--r--AudioLogic/AudioLogicLib.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/AudioLogic/AudioLogicLib.h b/AudioLogic/AudioLogicLib.h
new file mode 100644
index 0000000..21513fd
--- /dev/null
+++ b/AudioLogic/AudioLogicLib.h
@@ -0,0 +1,50 @@
+/*
+ * AlsaLibMapping -- provide low level interface with AUDIO lib (extracted from alsa-json-gateway code)
+ * Copyright (C) 2015,2016,2017, Fulup Ar Foll fulup@iot.bzh
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+// few coding convention
+typedef int BOOL;
+#ifndef PUBLIC
+ #define PUBLIC
+#endif
+#ifndef FALSE
+ #define FALSE 0
+#endif
+#ifndef TRUE
+ #define TRUE 1
+#endif
+#define STATIC static
+
+#ifndef AUDIOLIBMAPPING_H
+#define AUDIOLIBMAPPING_H
+
+#include <json-c/json.h>
+#include <afb/afb-binding.h>
+#include <afb/afb-service-itf.h>
+
+
+// import from AlsaAfbBinding
+extern const struct afb_binding_interface *afbIface;
+
+// import from AlsaAfbMapping
+PUBLIC void audioLogicSetVol (struct afb_req request);
+PUBLIC void audioLogicGetVol(struct afb_req request);
+PUBLIC void audioLogicMonitor(struct afb_req request);
+PUBLIC int audioLogicInit (struct afb_service service);
+
+#endif /* AUDIOLIBMAPPING_H */
+
d='n185' href='#n185'>185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239