matrix-glib-sdk/src/matrix-message-audio.h

45 lines
1.6 KiB
C
Raw Normal View History

2017-11-20 09:03:14 +00:00
/*
* This file is part of matrix-glib-sdk
*
* matrix-glib-sdk is free software: you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* matrix-glib-sdk 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with matrix-glib-sdk. If not, see
* <http://www.gnu.org/licenses/>.
*/
#ifndef __MATRIX_GLIB_SDK_MESSAGE_AUDIO_H__
# define __MATRIX_GLIB_SDK_MESSAGE_AUDIO_H__
# include <glib-object.h>
# include "matrix-message-base.h"
# include "matrix-types.h"
G_BEGIN_DECLS
#define MATRIX_MESSAGE_TYPE_AUDIO (matrix_message_audio_get_type ())
G_DECLARE_DERIVABLE_TYPE(MatrixMessageAudio, matrix_message_audio, MATRIX_MESSAGE, AUDIO, MatrixMessageBase)
struct _MatrixMessageAudioClass {
MatrixMessageBaseClass parent_class;
};
MatrixMessageAudio* matrix_message_audio_new (void);
const gchar* matrix_message_audio_get_url (MatrixMessageAudio* self);
void matrix_message_audio_set_url (MatrixMessageAudio* self, const gchar* value);
MatrixAudioInfo* matrix_message_audio_get_info (MatrixMessageAudio* self);
void matrix_message_audio_set_info (MatrixMessageAudio* self, MatrixAudioInfo* value);
G_END_DECLS
#endif /* __MATRIX_GLIB_SDK_MESSAGE_AUDIO_H__ */