ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Glib-Event/Event.pm
Revision: 1.1
Committed: Sun Nov 27 14:02:23 2005 UTC (20 years, 6 months ago) by root
Branch: MAIN
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 =head1 NAME
2    
3     Glib::Event - convert the Glib event loop a subsystem of the Event module
4    
5     =head1 SYNOPSIS
6    
7     use Glib::Event;
8    
9     =head1 DESCRIPTION
10    
11     This module coerces the Glib event loop to use the Event module as
12     underlying event loop, i.e. Event will be used by Glib for all events.
13    
14     This makes Glib compatible to Event. Calls into the Glib main loop
15     are more or less equivalent to calls to C<Event::loop>.
16    
17     =over 4
18    
19     =item * The Glib perl module is not used.
20    
21     This module has no dependency on the existing Glib perl interface, as it
22     uses glib directly. The Glib module can, however, be used without any
23     problems.
24    
25     =item * The default context will be changed when the module is loaded.
26    
27     Loading this module will automatically "patch" the default context of
28     libglib, so normally nothing more is required.
29    
30     =cut
31    
32     package Glib::Event;
33    
34     use Carp ();
35     use Event ();
36    
37     our $default_poll_func;
38    
39     BEGIN {
40     $VERSION = 0.1;
41    
42     require XSLoader;
43     XSLoader::load Glib::Event, $VERSION;
44    
45     $default_poll_func = install (undef);
46     }
47    
48     =back
49    
50     =cut
51    
52     =head1 SEE ALSO
53    
54     L<Event>, L<Glib>, L<Glib::MainLoop>.
55    
56     =head1 AUTHOR
57    
58     Marc Lehmann <schmorp@schmorp.de>
59     http://home.schmorp.de/
60    
61     =cut
62    
63     1
64