Re: [Vala] fuse.vapi help

2011-01-05 Thread Matt Harrison
Can anyone get me pointed in the right direction on this?

Thanks!

On Wed, Dec 22, 2010 at 3:33 PM, Matt Harrison  wrote:

> Hi,
>
> I'm trying to just do a basic example of using the fuse.vapi file to learn
> how it works.  I'm basically trying to remake this example
> http://code.google.com/p/fusepy/source/browse/trunk/memory.py but I'm not
> really sure how to begin.
>
> At the moment I'm trying something simple like this:
>
> int main (string[] args)
> {
> void* user_data = null;
>  Fuse.Operations oper = Fuse.Operations() {
> mkdir = (path, mode) => {
> stdout.printf("mkdir\n");
>  }
> };
> Fuse.main(args, oper, user_data);
>  return 0;
> }
>
> But I've no idea what I'm doing. Thanks for any help on how to get started
> with this.
>
> Matt
>
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


[Vala] fuse.vapi help

2010-12-22 Thread Matt Harrison
Hi,

I'm trying to just do a basic example of using the fuse.vapi file to learn
how it works.  I'm basically trying to remake this example
http://code.google.com/p/fusepy/source/browse/trunk/memory.py but I'm not
really sure how to begin.

At the moment I'm trying something simple like this:

int main (string[] args)
{
void* user_data = null;
Fuse.Operations oper = Fuse.Operations() {
mkdir = (path, mode) => {
stdout.printf("mkdir\n");
}
};
Fuse.main(args, oper, user_data);
return 0;
}

But I've no idea what I'm doing. Thanks for any help on how to get started
with this.

Matt
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list


[Vala] Vala Tutorial Issue

2010-09-28 Thread Matt Harrison
In this code section of "The Main Loop" portion of the Vala tutorial.

void main() {var loop = new MainLoop();var time = new
TimeoutSource(2000);time.set_callback(() => {
stdout.printf("Time!\n");loop.quit();return false;
});time.attach(loop.get_context());loop.run();}

I get this Error when trying to compile:

warning: passing argument 4 of 'g_source_set_callback' from incompatible
pointer type
/usr/include/glib-2.0/glib/gmain.h:199: note: expected 'GDestroyNotify' but
argument is of type 'void (*)(struct Block1Data *)'

Is the tutorial incorrect here?
___
vala-list mailing list
vala-list@gnome.org
http://mail.gnome.org/mailman/listinfo/vala-list