📄 booking.h
字号:
// SubScribe.c: implementation of the SubScribe class.
//
//////////////////////////////////////////////////////////////////////
#ifndef __BOOKING_H__
#define __BOOKING_H__
#include "dvbdata.h"
/*预订管理模块*/
typedef struct BookingItem{
char name[32];
UINT startTime;//开始时间
USHORT date;//开始日期
struct BookingItem*next;
}BOOKINGITEM;
typedef struct Booking{
USHORT netId;
USHORT tsId;
USHORT serviceId;
int Count;
BOOKINGITEM*Items;
struct Booking*next;
}BOOKING;
//==================预订管理======================
typedef int (*BOOKINGNOTIFY)(BOOKINGITEM*itm);
int BookingInit(void);
int BookingTerm(void);
void BookingRegisterNotify(BOOKINGNOTIFY notify);
int AddBookingItem(SERVICELOCATOR*sloc,USHORT date,UINT time);
int FindBookingItem(SERVICELOCATOR*sloc,USHORT date,UINT time);
//检查该Service的指定时间断是否有预订信息
int DelBookingItem(SERVICELOCATOR*sloc,USHORT date,UINT time);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -