mirror of
https://github.com/morgan9e/grd
synced 2026-04-14 00:14:18 +09:00
.
This commit is contained in:
50
grd-stream.h
Normal file
50
grd-stream.h
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright (C) 2017 Red Hat Inc.
|
||||
*
|
||||
* 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., 59 Temple Place - Suite 330, Boston, MA
|
||||
* 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <glib-object.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "grd-dbus-mutter-screen-cast.h"
|
||||
#include "grd-types.h"
|
||||
|
||||
#define GRD_TYPE_STREAM (grd_stream_get_type ())
|
||||
G_DECLARE_DERIVABLE_TYPE (GrdStream, grd_stream, GRD, STREAM, GObject)
|
||||
|
||||
struct _GrdStreamClass
|
||||
{
|
||||
GObjectClass parent_class;
|
||||
};
|
||||
|
||||
GrdStream *grd_stream_new (uint32_t stream_id,
|
||||
GrdDBusMutterScreenCastStream *proxy,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
void grd_stream_destroy (GrdStream *stream);
|
||||
|
||||
uint32_t grd_stream_get_stream_id (GrdStream *stream);
|
||||
|
||||
uint32_t grd_stream_get_pipewire_node_id (GrdStream *stream);
|
||||
|
||||
const char * grd_stream_get_mapping_id (GrdStream *stream);
|
||||
|
||||
void grd_stream_disconnect_proxy_signals (GrdStream *stream);
|
||||
Reference in New Issue
Block a user