denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] Getting gio working for Denemo


From: Jeremiah Benham
Subject: Re: [Denemo-devel] Getting gio working for Denemo
Date: Fri, 15 May 2009 07:46:07 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, May 15, 2009 at 12:53:07PM +0100, Richard Shann wrote:
> I've been trying to get installation of Denemo commands directly from
> denemo.org.
> As a first step I included the following code in Denemo:
> 
>   GError *err = NULL;
>   GFile * file=g_file_new_for_uri
> ("http://www.rshann.plus.com/denemo.html";);
>   GFileInputStream *stream =  g_file_read(file, NULL, &err);
>   if (err != NULL)
>     {
>       g_warning ("The opening of uri gave %s", err->message);
>       if(err) g_error_free (err);
>       err = NULL;
>     } else {
> #define COUNT (10000)
>       gchar *buffer = g_malloc0(COUNT);
>       gsize numbytes;
>       gboolean success = g_input_stream_read_all(stream, buffer,
>                                                COUNT,
>                                                &numbytes,NULL,NULL);
>       g_print("Read ***********\n%s\n*********** end of read", buffer);
>       
>     }
> 
> This works for files on the local disk (i.e. "file:///home...." ) but
> gives
> 
> Operation not supported
> 
> for the page on the internet. Under the documentation is just the
> statement that it means it is not supported by the backend. But whether
> this is the case for Debian Lenny I don't know. Can someone try the code
> on their distro (you need to include gio/gio.h and link with -lgio-2.0),
> in case it is just Lenny being behind the times.

I can test this out tonight after work. So you probably won't get the answer 
until tommorow due to time zones. 

Jeremiah 
> 
> Richard
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/denemo-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]