auto_bus/include/query.h

75 lines
1.3 KiB
C
Raw Normal View History

2022-05-06 11:55:30 +08:00
//
// Created by ricardo on 2022/5/6.
//
#ifndef AUTO_PILOT_BUS_QUERY_H
#define AUTO_PILOT_BUS_QUERY_H
#include "rail.h"
struct {
/**
*
*/
int id;
/**
*
*/
int direction;
/**
*
*/
rail_node_t* target;
struct up_bus* next;
} up_bus;
struct {
/**
*
*/
int id;
/**
*
*/
rail_node_t* target;
struct down_bus* next;
} down_bus;
/**
*
*/
typedef struct up_bus up_bus_t;
/**
*
*/
typedef struct down_bus down_bus_t;
extern up_bus_t *up_queries;
extern down_bus_t *down_queries;
/**
*
* @param target
* @param direction
*/
void CreateUpBusQuery(rail_node_t* target, int direction);
/**
*
* @param id
*/
void DeleteUpBusQuery(int id);
/**
*
* @param target
*/
void CreateDownBusQuery(rail_node_t *target);
/**
*
* @param id
*/
void DeleteDownBusQuery(int id);
#endif //AUTO_PILOT_BUS_QUERY_H