mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-26 23:13:00 +02:00
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@27 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: bc5bd4154e
Author: mrcolor <mrcolor@e54a6e83-5905-42d5-8d5c-058d10e6a962>
Date: 2009-12-08 (Tue, 08 Dec 2009)
------------------
This commit was generated by Migit
156 lines
2.9 KiB
C++
156 lines
2.9 KiB
C++
/*
|
|
* $Header: /cvs/tuxbox/apps/tuxbox/neutrino/lib/timerdclient/timerdmsg.h,v 1.11 2006/02/14 22:38:28 zwen Exp $
|
|
*
|
|
* types used for clientlib <-> timerd communication - d-box2 linux project
|
|
*
|
|
* (C) 2002 by thegoodguy <thegoodguy@berlios.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef __timerdmsg_h__
|
|
#define __timerdmsg_h__
|
|
|
|
|
|
#include <connection/basicmessage.h>
|
|
|
|
#include "timerdtypes.h" // REMINDER_MESSAGE_MAXLEN
|
|
|
|
|
|
#define TIMERD_UDS_NAME "/tmp/timerd.sock"
|
|
|
|
|
|
class CTimerdMsg : public CBasicMessage
|
|
{
|
|
|
|
public:
|
|
|
|
static const CBasicMessage::t_version ACTVERSION = 2;
|
|
|
|
enum commands
|
|
{
|
|
CMD_ADDTIMER = 1,
|
|
CMD_REMOVETIMER,
|
|
CMD_GETTIMER,
|
|
CMD_GETTIMERLIST,
|
|
CMD_MODIFYTIMER,
|
|
CMD_GETSLEEPTIMER,
|
|
CMD_RESCHEDULETIMER,
|
|
|
|
CMD_REGISTEREVENT,
|
|
CMD_UNREGISTEREVENT,
|
|
CMD_TIMERDAVAILABLE,
|
|
CMD_SHUTDOWN,
|
|
CMD_SETAPID,
|
|
CMD_GETRECSAFETY,
|
|
CMD_SETRECSAFETY,
|
|
CMD_STOPTIMER
|
|
};
|
|
|
|
|
|
struct commandAddTimer
|
|
{
|
|
CTimerd::CTimerEventTypes eventType;
|
|
CTimerd::CTimerEventRepeat eventRepeat;
|
|
time_t alarmTime;
|
|
time_t announceTime;
|
|
time_t stopTime;
|
|
uint32_t repeatCount;
|
|
};
|
|
|
|
struct commandGetTimer
|
|
{
|
|
int eventID;
|
|
};
|
|
|
|
struct commandModifyTimer
|
|
{
|
|
int eventID;
|
|
time_t announceTime;
|
|
time_t alarmTime;
|
|
time_t stopTime;
|
|
CTimerd::CTimerEventRepeat eventRepeat;
|
|
uint32_t repeatCount;
|
|
};
|
|
|
|
|
|
struct commandRemind
|
|
{
|
|
char message[REMINDER_MESSAGE_MAXLEN];
|
|
};
|
|
|
|
struct commandExecPlugin
|
|
{
|
|
char name[EXEC_PLUGIN_NAME_MAXLEN];
|
|
};
|
|
|
|
struct commandRecordDir
|
|
{
|
|
char recDir[RECORD_DIR_MAXLEN];
|
|
};
|
|
|
|
struct commandSetAPid
|
|
{
|
|
int eventID;
|
|
unsigned char apids;
|
|
};
|
|
|
|
struct commandRemoveTimer
|
|
{
|
|
int eventID;
|
|
};
|
|
|
|
struct commandSetStandby
|
|
{
|
|
bool standby_on;
|
|
};
|
|
|
|
struct commandRecordingSafety
|
|
{
|
|
int pre;
|
|
int post;
|
|
};
|
|
|
|
|
|
struct generalInteger
|
|
{
|
|
int number;
|
|
};
|
|
|
|
struct responseAddTimer
|
|
{
|
|
int eventID;
|
|
};
|
|
|
|
struct responseAvailable
|
|
{
|
|
bool available;
|
|
};
|
|
|
|
struct responseGetSleeptimer
|
|
{
|
|
int eventID;
|
|
};
|
|
|
|
struct responseStatus
|
|
{
|
|
bool status;
|
|
};
|
|
|
|
};
|
|
|
|
#endif /* __timerdmsg_h__ */
|