| 1 |
/* |
| 2 |
* Copyright (C) 2013 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#ifndef __COCKPIT_PIPE_TRANSPORT_H__ |
| 7 |
#define __COCKPIT_PIPE_TRANSPORT_H__ |
| 8 |
|
| 9 |
#include <gio/gio.h> |
| 10 |
|
| 11 |
#include "cockpitpipe.h" |
| 12 |
#include "cockpittransport.h" |
| 13 |
|
| 14 |
G_BEGIN_DECLS |
| 15 |
|
| 16 |
#define COCKPIT_TYPE_PIPE_TRANSPORT (cockpit_pipe_transport_get_type ()) |
| 17 |
G_DECLARE_FINAL_TYPE(CockpitPipeTransport, cockpit_pipe_transport, COCKPIT, PIPE_TRANSPORT, CockpitTransport) |
| 18 |
|
| 19 |
CockpitTransport * cockpit_pipe_transport_new (CockpitPipe *pipe); |
| 20 |
|
| 21 |
CockpitTransport * cockpit_pipe_transport_new_fds (const gchar *name, |
| 22 |
gint in_fd, |
| 23 |
gint out_fd); |
| 24 |
|
| 25 |
CockpitPipe * cockpit_pipe_transport_get_pipe (CockpitPipeTransport *self); |
| 26 |
|
| 27 |
G_END_DECLS |
| 28 |
|
| 29 |
#endif /* __COCKPIT_PIPE_TRANSPORT_H__ */ |