AiCPlayer
Interface of aic vm - for rendering aspect, sensors, video records
Macros | Functions
sensors.c File Reference

Sensor packets forwarders. More...

#include <pthread.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <time.h>
#include "amqp_listen.h"
#include "config_env.h"
#include "logger.h"
#include "buffer_sizes.h"
#include "player_nfc.h"
#include "protobuf_framing.h"
#include "sensors.h"
#include "socket.h"
Include dependency graph for sensors.c:

Go to the source code of this file.

Macros

#define LOG_TAG   "sensors"
 

Functions

sensor_paramsParamEventsWorker (const char *vmip, const char *vmid, const char *sensor_name, const char *amqp_host)
 Creates the data structure for sensor threads. More...
 
void start_sensor (sensor_params *params, pthread_t *thread)
 Start the sensor listener thread. More...
 
int main ()
 

Detailed Description

Sensor packets forwarders.

Definition in file sensors.c.

Macro Definition Documentation

#define LOG_TAG   "sensors"

Definition at line 24 of file sensors.c.

Function Documentation

int main ( )

Definition at line 160 of file sensors.c.

Here is the call graph for this function:

sensor_params* ParamEventsWorker ( const char *  vmip,
const char *  vmid,
const char *  sensor_name,
const char *  amqp_host 
)

Creates the data structure for sensor threads.

Parameters
vmipIP address of the VM
vmidIdentifier of the VM
sensor_nameName of the sensor
amqp_hostHost of the RabbitMQ server
Returns
An initialized data structure.

Definition at line 105 of file sensors.c.

Here is the caller graph for this function:

void start_sensor ( sensor_params params,
pthread_t *  thread 
)

Start the sensor listener thread.

Parameters
paramsThe sensor parameter struct
threada reference to the thread to start

Definition at line 154 of file sensors.c.

Here is the caller graph for this function: