~ubuntu-branches/debian/squeeze/glib2.0/squeeze

« back to all changes in this revision

Viewing changes to glib/giochannel.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2009-02-15 13:00:43 UTC
  • mfrom: (1.3.1 upstream) (69.1.10 intrepid)
  • Revision ID: james.westby@ubuntu.com-20090215130043-q47fbt3owmt42m2f
Tags: 2.18.4-2
* Release to unstable
* debian/rules:
- bump SHVER, since we are already forcing a 2.18.0 dependecy on the
  symbols introduced in the development versions
* debian/control.in:
- added Homepage and Vcs-* control fields

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 * Modified by the GLib Team and others 1997-2000.  See the AUTHORS
22
22
 * file for a list of people on the GLib Team.  See the ChangeLog
23
23
 * files for a list of changes.  These files are distributed with
24
 
 * GLib at ftp://ftp.gtk.org/pub/gtk/. 
 
24
 * GLib at ftp://ftp.gtk.org/pub/gtk/.
25
25
 */
26
26
 
 
27
#if defined(G_DISABLE_SINGLE_INCLUDES) && !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
 
28
#error "Only <glib.h> can be included directly."
 
29
#endif
 
30
 
27
31
#ifndef __G_IOCHANNEL_H__
28
32
#define __G_IOCHANNEL_H__
29
33
 
324
328
                                       gint        timeout_);
325
329
 
326
330
/* Create an IO channel for Windows messages for window handle hwnd. */
 
331
#if GLIB_SIZEOF_VOID_P == 8
 
332
/* We use gsize here so that it is still an integer type and not a
 
333
 * pointer, like the guint in the traditional prototype. We can't use
 
334
 * intptr_t as that is not portable enough.
 
335
 */
 
336
GIOChannel *g_io_channel_win32_new_messages (gsize hwnd);
 
337
#else
327
338
GIOChannel *g_io_channel_win32_new_messages (guint hwnd);
 
339
#endif
328
340
 
329
341
/* Create an IO channel for C runtime (emulated Unix-like) file
330
342
 * descriptors. After calling g_io_add_watch() on a IO channel
333
345
 * implemented on Win32 by starting a thread that sits blocked in a
334
346
 * read() from the file descriptor most of the time. All reads from
335
347
 * the file descriptor should be done by this internal GLib
336
 
 * thread. Your code should call only g_io_channel_read().
 
348
 * thread. Your code should call only g_io_channel_read_chars().
337
349
 */
338
350
GIOChannel* g_io_channel_win32_new_fd (gint         fd);
339
351