doubango/tinyMCPTT/include/tinymcptt/tmcptt_message.h
c732d49e
 /* 
175b478c
 
74ca6d11
 *  Copyright (C) 2020, University of the Basque Country (UPV/EHU)
c732d49e
 *
 * Contact for licensing options: <licensing-mcpttclient(at)mcopenplatform(dot)com>
 *       
 * This file is part of MCOP MCPTT Client
 *
 * This 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 3 
 * of the License, or (at your option) any later version.
 *       
 * This 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., 
 * 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
 
 /*
  * @file tmcptt_message.h
  * @brief MCPTT message.
  *
  */
 #ifndef TINYMCPTT_MESSAGE_H
 #define TINYMCPTT_MESSAGE_H
 
 #include "tinymcptt_config.h"
 #include "tsk_object.h"
 
 TMCPTT_BEGIN_DECLS
 
 #define TMCPTT_MESSAGE(self)				((tmcptt_message_t*)(self))
 
 typedef struct tmcptt_message_s
 {
 	TSK_DECLARE_OBJECT;
 	
 	uint16_t reason_code;
 	char* reason_phrase;
 	char* user;
 	tsk_bool_t is_broadcast_call;
 	uint16_t time;
 	uint16_t participants;
 	uint8_t queue_position;
 	uint8_t queue_priority;
 }
 tmcptt_message_t;
 
 
 TINYMCPTT_API tmcptt_message_t* tmcptt_message_create(uint16_t rcode, const char* rphrase, const char* user, uint16_t parts, uint16_t t);
 TINYMCPTT_API tmcptt_message_t* tmcptt_message_create_null();
 
 TINYMCPTT_GEXTERN const tsk_object_def_t *tmcptt_message_def_t;
 
 TMCPTT_END_DECLS
 
 #endif /* TINYMCPTT_MESSAGE_H */