manpagez: man pages & more
html files: gio
Home | html | info | man

GFileDescriptorBased

GFileDescriptorBased — Interface for file descriptor based IO

Functions

Types and Values

Object Hierarchy

    GInterface
    ╰── GFileDescriptorBased

Prerequisites

GFileDescriptorBased requires GObject.

Known Implementations

GFileDescriptorBased is implemented by GUnixInputStream and GUnixOutputStream.

Includes

#include <gio/gfiledescriptorbased.h>

Description

GFileDescriptorBased is implemented by streams (implementations of GInputStream or GOutputStream) that are based on file descriptors.

Note that &lt;gio/gfiledescriptorbased.h> belongs to the UNIX-specific GIO interfaces, thus you have to use the gio-unix-2.0.pc pkg-config file when using it.

Functions

g_file_descriptor_based_get_fd ()

int
g_file_descriptor_based_get_fd (GFileDescriptorBased *fd_based);

Gets the underlying file descriptor.

Parameters

fd_based

a GFileDescriptorBased.

 

Returns

The file descriptor

Since: 2.24

Types and Values

GFileDescriptorBased

typedef struct _GFileDescriptorBased GFileDescriptorBased;

An interface for file descriptor based io objects.


struct GFileDescriptorBasedIface

struct GFileDescriptorBasedIface {
  GTypeInterface g_iface;

  /* Virtual Table */
  int (*get_fd) (GFileDescriptorBased *fd_based);
};

An interface for file descriptor based io objects.

Members

get_fd ()

Gets the underlying file descriptor.

 
© manpagez.com 2000-2024
Individual documents may contain additional copyright information.