This repository has been archived by the owner on Feb 8, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2009-01-16 Cody Russell <bratsche@gnome.org>
* sdk-en/SDK.wxs * modules/vte-dev/sources/include/vte/pty.h * modules/vte-dev/sources/include/vte/reaper.h * modules/vte-dev/sources/include/vte/vte.h * modules/vte-dev/sources/include/vte/vteaccess.h * modules/vte-dev/sources/lib/pkgconfig/vte.pc * modules/vte-dev/vte-dev.build * modules/vte-dev/vte-dev.wxs: Add vte-dev merge module to contain vte headers and pkgconfig file. svn path=/trunk/win32-installers/; revision=123647
- Loading branch information
Showing
9 changed files
with
687 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,48 @@ | |||
/* | |||
* Copyright (C) 2001,2002 Red Hat, Inc. | |||
* | |||
* This 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 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 Library General Public | |||
* License along with this program; if not, write to the Free Software | |||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |||
*/ | |||
|
|||
#ifndef vte_pty_h_included | |||
#define vte_pty_h_included | |||
|
|||
#include <sys/types.h> | |||
|
|||
G_BEGIN_DECLS | |||
|
|||
/* Start up the given binary (exact path, not interpreted at all) in a | |||
* pseudo-terminal of its own, returning the descriptor for the master | |||
* side of the PTY pair, logging the session to the specified files, and | |||
* storing the child's PID in the given argument. */ | |||
int _vte_pty_open(pid_t *child, char **env_add, | |||
const char *command, char **argv, const char *directory, | |||
int columns, int rows, | |||
gboolean lastlog, gboolean utmp, gboolean wtmp); | |||
|
|||
/* Set or read the size of a terminal. Returns 0 on success, -1 on failure, | |||
* with errno set to defined return codes from ioctl(). */ | |||
int _vte_pty_get_size(int master, int *columns, int *rows); | |||
int _vte_pty_set_size(int master, int columns, int rows); | |||
|
|||
/* Try to let the kernel know that the terminal is or is not UTF-8. */ | |||
void _vte_pty_set_utf8(int pty, gboolean utf8); | |||
|
|||
/* Close a pty. */ | |||
void _vte_pty_close(int pty); | |||
|
|||
G_END_DECLS | |||
|
|||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,64 @@ | |||
/* | |||
* Copyright (C) 2002 Red Hat, Inc. | |||
* | |||
* This 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 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 Library General Public | |||
* License along with this program; if not, write to the Free Software | |||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |||
*/ | |||
|
|||
#ifndef vte_reaper_h_included | |||
#define vte_reaper_h_included | |||
|
|||
|
|||
#include <sys/wait.h> | |||
#include <signal.h> | |||
#include <glib.h> | |||
#include <glib-object.h> | |||
|
|||
G_BEGIN_DECLS | |||
|
|||
struct _VteReaper { | |||
GObject object; | |||
GIOChannel *channel; | |||
int iopipe[2]; | |||
}; | |||
typedef struct _VteReaper VteReaper; | |||
|
|||
struct _VteReaperClass { | |||
GObjectClass parent_class; | |||
guint child_exited_signal; | |||
}; | |||
typedef struct _VteReaperClass VteReaperClass; | |||
|
|||
GType vte_reaper_get_type(void); | |||
|
|||
#define VTE_TYPE_REAPER (vte_reaper_get_type()) | |||
#define VTE_REAPER(obj) (GTK_CHECK_CAST((obj), \ | |||
VTE_TYPE_REAPER, \ | |||
VteReaper)) | |||
#define VTE_REAPER_CLASS(klass) GTK_CHECK_CLASS_CAST((klass), \ | |||
VTE_TYPE_REAPER, \ | |||
VteReaperClass) | |||
#define VTE_IS_REAPER(obj) GTK_CHECK_TYPE((obj), VTE_TYPE_REAPER) | |||
#define VTE_IS_REAPER_CLASS(klass) GTK_CHECK_CLASS_TYPE((klass), \ | |||
VTE_TYPE_REAPER) | |||
#define VTE_REAPER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), \ | |||
VTE_TYPE_REAPER, \ | |||
VteReaperClass)) | |||
|
|||
VteReaper *vte_reaper_get(void); | |||
int vte_reaper_add_child(GPid pid); | |||
|
|||
G_END_DECLS | |||
|
|||
#endif |
Oops, something went wrong.