Guide for using icommands (or rodsClient) as a library in other programs?

58 views
Skip to first unread message

Samuel Lampa

unread,
Aug 6, 2015, 9:16:45 AM8/6/15
to iRODS-Chat
I was wondering if there is any guide for using the icommands (or, I guess, the underlying rodsClient, IIUC) in other programs, e.g. for building a custom client?

(I have so far only very basic knowledge of C, but wanted to try out some things (while learning more C in the process), and thus looking for any pointers to get started quicker)

Best
// Samuel

Jason Coposky

unread,
Aug 6, 2015, 9:53:26 AM8/6/15
to irod...@googlegroups.com

Samuel,


We have not formally documented the C API yet, but if you want to get started I would look at the rcDataObj* set of client-side API calls.  You can also look at the *Util functions in iRODS/lib/core/src/*.cpp which correspond to the icommands.  lsUtil() is in iRODS/lib/core/src/lsUtil.cpp and is called by ils to get the actual work done.


To begin with some simple test code you can start with calling rcDataObjCreate(), rcDataObjWrite() and rcDataObjClose().


I can send you some example code offline if you like.


thanks,



Jason Coposky
Chief Technologist, iRODS Consortium
RENCI at the University of North Carolina at Chapel Hill
(919)445-9675
jas...@renci.org

irods.org — Take Control of Your Data

From: irod...@googlegroups.com <irod...@googlegroups.com> on behalf of Samuel Lampa <samuel...@gmail.com>
Sent: Thursday, August 6, 2015 9:16 AM
To: iRODS-Chat
Subject: [iROD-Chat:14124] Guide for using icommands (or rodsClient) as a library in other programs?
 
--
--
"iRODS: the Integrated Rule-Oriented Data-management System; A community driven, open source, data grid software solution" https://www.irods.org
 
iROD-Chat: http://groups.google.com/group/iROD-Chat

---
You received this message because you are subscribed to the Google Groups "iRODS-Chat" group.
To unsubscribe from this group and stop receiving emails from it, send an email to irod-chat+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Samuel Lampa

unread,
Aug 6, 2015, 9:57:09 AM8/6/15
to iRODS-Chat, jas...@renci.org
Nice, thanks a lot for the pointers, that should help!

Yes, a few more code examples would be awesome. (My mail is samuel dot lampa at that common google mail domain, or bils.se, in case you need it).

Best
// Samuel
Reply all
Reply to author
Forward
0 new messages