Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:46258 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97838 invoked from network); 1 Dec 2009 12:17:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Dec 2009 12:17:29 -0000 Authentication-Results: pb1.pair.com header.from=johannes@schlueters.de; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=johannes@schlueters.de; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain schlueters.de from 83.243.58.134 cause and error) X-PHP-List-Original-Sender: johannes@schlueters.de X-Host-Fingerprint: 83.243.58.134 mailout2.netbeat.de Linux 2.6 Received: from [83.243.58.134] ([83.243.58.134:43024] helo=mailout2.netbeat.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 02/C0-24347-559051B4 for ; Tue, 01 Dec 2009 07:17:28 -0500 Received: (qmail 12945 invoked by uid 89); 1 Dec 2009 12:22:04 -0000 Received: from unknown (HELO ?192.168.1.21?) (postmaster%schlueters.de@93.104.57.91) by mailout2.netbeat.de with ESMTPA; 1 Dec 2009 12:22:04 -0000 X-Originator: 9e51b244e0a38413ab6a9876e36ba9df To: Samuel ROZE Cc: PHP Developers Mailing List In-Reply-To: <1259344432.2889.8.camel@samuel-laptop> References: <1259344432.2889.8.camel@samuel-laptop> Content-Type: text/plain; charset="UTF-8" Date: Tue, 01 Dec 2009 13:16:43 +0100 Message-ID: <1259669803.2291.14.camel@guybrush> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Using a stream function into another module From: johannes@schlueters.de (Johannes =?ISO-8859-1?Q?Schl=FCter?=) On Fri, 2009-11-27 at 18:53 +0100, Samuel ROZE wrote: > Hello, > > I want to use two stream functions (stream_array_to_fd_set and > stream_array_from_fd_set) in a module (/etc/modulename/modulename.c). To > use them, i included the streamsfuncs.h file, with: stream_array_from_fd_set is declared static in streamsfuncs.c and can't be used in other places. You either have to find a wrapper around it, make the streams layer exporting the functions (there mightbe a reason why they are static - didn't look into it) or find another way to implement what you need. johannes