[redland-dev] Statement ownership of nodes

Steve Shepard steveshepard at mac.com
Tue Jul 27 21:15:02 BST 2004


I've spent the last couple of days with librdf. Nice!  A quick question:

The librdf_statement_set_* routines carry the warning:

"The <node> passed in becomes owned by the statement object and must 
not be used by the caller after this call."

I'm curious about the reason for this. If the intent is to prevent the 
deletion of the resource, a better approach would be to adopted the 
ownership conventions used in the rest of the library and bump the 
node->usage count. What am I missing?

-Steve




More information about the redland-dev mailing list