2006/7/21, Enrico Tröger <enrico.troeger@uvena.de>:
On Thu, 20 Jul 2006 17:13:17 -0300, "Alexandre Moreira"
<alexandream@gmail.com> wrote:
> I think it won't be hard to make the fifo stuff we use in *nix work
> in the win32 build also, although this is not the "Right Way" of
> doing this in windows (DDE is too windows-complicated for my unix
> head).
>
> For that, I must know what the GEANY_FIFO_NAME constant resolves to in
> Windows building (trying to hack something with no good development
GEANY_FIFO_NAME is just an macro for "geany_fifo.0"
And this file exists in the configuration directory of Geany, for
example ~/.geany/geany_fifo.0 or whatever was specified with the -c
command line switch.
More interesting could be the variable app->fifo_ioc, which points to
the open IOChannel to this file. But who knows who are IOChannels used
under Windows ;-).
I have been checking out, and I can open a named pipe using Windows API -- CreateNamedPipe() -- , then find a file descriptor for it (using an weird windows function --
_open_osfhandle()
) and use it with g_io_channel_win32_new_fd() and we will have a IO Channel listening on a named pipe (uff... some work to get a basic thing going, but thats windows).
The problem is, I am not quite sure how to write the "client" code yet, so there is no point in doing the "server" side right now, and I had some ideas that I'd like to discuss with you about the way we handle the fifo file, but I'll open another thread for that, since It concerns not only the windows version.
Just pointed it all out for you guys to see where the planning is at right now with the win32 support for pipes in Geany, and to see if anyone with more experience in Windows programming (I first started looking for win32 API like... 4 days ago.... and spent the other 3 days with no internet, so...) can give any ideas or tips.
Regards,
Alexandre Moreira.
Regards,
Enrico
--
Get my GPG key from
http://www.uvena.de/pub.key
_______________________________________________
Geany mailing list
Geany@uvena.de
http://uvena.de/cgi-bin/mailman/listinfo/geany