Re: Using a stream function into another module
| From: | Johannes Schlüter | Date: | Tue, 01 Dec 2009 12:16:43 +0000 |
| Subject: | Re: Using a stream function into another module | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46258@lists.php.net to get a copy of this message | ||
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