ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev_port.c
(Generate patch)

Comparing libev/ev_port.c (file contents):
Revision 1.1 by root, Fri Nov 16 01:33:54 2007 UTC vs.
Revision 1.3 by root, Fri Nov 23 05:00:45 2007 UTC

8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 * 13 *
16 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 14 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 15 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 16 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
118 method_poll = port_poll; 116 method_poll = port_poll;
119 117
120 port_eventmax = 64; /* intiial number of events receivable per poll */ 118 port_eventmax = 64; /* intiial number of events receivable per poll */
121 port_events = (port_event_t *)ev_malloc (sizeof (port_event_t) * port_eventmax); 119 port_events = (port_event_t *)ev_malloc (sizeof (port_event_t) * port_eventmax);
122 120
123 return EVMETHOD_PORT; 121 return EVBACKEND_PORT;
124} 122}
125 123
126static void 124static void
127port_destroy (EV_P) 125port_destroy (EV_P)
128{ 126{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines