Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
sol-ipm.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Soletta (TM) Project
3  *
4  * Copyright (C) 2015 Intel Corporation. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18 
19 #pragma once
20 
21 #include <stdbool.h>
22 #include <stdint.h>
23 
24 #include "sol-types.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
77 int sol_ipm_set_receiver(uint32_t id,
78  void (*receive_cb)(void *cb_data, uint32_t id, struct sol_blob *message),
79  const void *data);
80 
96 int sol_ipm_send(uint32_t id, struct sol_blob *message);
97 
121 int sol_ipm_set_consumed_callback(uint32_t id,
122  void (*message_consumed_cb)(void *cb_data, uint32_t id, struct sol_blob *message),
123  const void *data);
124 
136 uint32_t sol_ipm_get_max_id(void);
137 
142 #ifdef __cplusplus
143 }
144 #endif
int sol_ipm_send(uint32_t id, struct sol_blob *message)
Send IPM message.
These routines are used for Soletta types' manipulation.
int sol_ipm_set_receiver(uint32_t id, void(*receive_cb)(void *cb_data, uint32_t id, struct sol_blob *message), const void *data)
Set receiver to IPM messages.
uint32_t sol_ipm_get_max_id(void)
Get maximum IPM message ID for the platform.
static struct sol_mqtt_message message
Definition: mqtt-publish.c:35
int sol_ipm_set_consumed_callback(uint32_t id, void(*message_consumed_cb)(void *cb_data, uint32_t id, struct sol_blob *message), const void *data)
Set callback to be called when sent messaged is consumed.
const char * data
Slice data.
Definition: sol-str-slice.h:86
Data type describing the default blob implementation.
Definition: sol-types.h:468