Sven,

It would be easy to do. The real problem is string handling. We'd have to
specify buffers and lengths.

So for a directory listing, you would get either a long string to be parsed, or
an array of strings.
Also, the return types are multiple, integer, string or floating. It would
probably be better to get the raw data type rather than have to reparse the
ascii interpretation.

Choices in C:
Use fuse and filesystem calls.
Make a wrapper.
Use owfs as the ptototype. It essecially abstracts out the C call interface,
such as:
  FS_getdir, FS_read, FS_write and FS_statfs

Paul
  



-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Sven Geggus
Sent: Fri 10/7/2005 1:32 PM
To: [email protected]
Subject: [Owfs-developers] C-API
 
Hello all,

I like the simple owfs Interfaces for the major scripting languages. Is
there something like this for C as well? If so, do you have some simple
examples besides the sources of owhttpd and such? Unfortunately, the
example directory of my CVS "working copy" is empty.

Sven

-- 
wenn ping auf localhost nicht funktioniert, solltest Du zuerst TCP/IP
de- und neuinstallieren.
                            (Mario Arndt in de.comm.protocols.tcp-ip)
/me is [EMAIL PROTECTED], http://sven.gegg.us/ on the Web


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

<<winmail.dat>>

Reply via email to