mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-10 13:30:05 -05:00
45 lines
1.4 KiB
C
45 lines
1.4 KiB
C
/* GStreamer
|
|
* Copyright (C) 2014 William Manley <will@williammanley.net>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef _GST_FDPAY_WIRE_PROTOCOL_H_
|
|
#define _GST_FDPAY_WIRE_PROTOCOL_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
/**
|
|
* @flags: possible flags
|
|
* @seq: a sequence number
|
|
* @pts: a PTS or presentation timestamp
|
|
* @dts_offset: an offset to @pts to get the DTS
|
|
* @offset: offset in fd
|
|
* @size: size of data in fd
|
|
*
|
|
* Almost the simplest possible FD passing protocol. Each message should have
|
|
* a file-descriptor attached which should be mmapable. The data in the FD can
|
|
* be found at offset and is size bytes long. */
|
|
typedef struct {
|
|
guint32 flags;
|
|
guint32 seq;
|
|
gint64 pts;
|
|
gint64 dts_offset;
|
|
guint64 offset;
|
|
guint64 size;
|
|
} FDMessage;
|
|
|
|
#endif
|