From: Robert W. <wrw...@us...> - 2007-08-24 22:51:42
|
Update of /cvsroot/linuxisns/isnsNT/isnsserver/include In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv31084/include Modified Files: iSNSdb.h Added Files: iSNSobjects.h Log Message: abstracting read/write objects to database --- NEW FILE: iSNSobjects.h --- /*********************************************************************** Copyright (c) 2007, Novell, Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. - Neither the name of the Novell, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Novell, INC. OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ***********************************************************************/ /* * This file contains definitions related to read and writing of database objects * */ #ifndef _SNSobjects_h_ #define _SNSobjects_h_ int read_ISCSIObject (char *p_id, SOIP_Iscsi ** p_entity, SOIP_DB_Entry *p_entry); int read_EntityObject (char *p_entity_id, SOIP_Entity ** p_entity, SOIP_DB_Entry *p_entry); int read_DDObject (int id, SOIP_Dd ** p_dd, SOIP_DB_Entry * p_entry); int read_DDSObject (int id, SOIP_Dds ** p_dds, SOIP_DB_Entry * p_entry); int write_ISCSIObject (char *p_id, SOIP_DB_Entry p_entry); int write_EntityObject (char *p_entity_id, SOIP_DB_Entry p_entry); int write_DDObject (int id, SOIP_DB_Entry p_entry); int write_DDSObject (int id, SOIP_DB_Entry p_entry); int delete_ISCSIObject (char * p_id); int delete_EntityObject (char * p_entity_id); int delete_DDObject (int id); int delete_DDSObject (int id); #endif Index: iSNSdb.h =================================================================== RCS file: /cvsroot/linuxisns/isnsNT/isnsserver/include/iSNSdb.h,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** iSNSdb.h 23 Aug 2007 02:50:20 -0000 1.10 --- iSNSdb.h 24 Aug 2007 22:51:34 -0000 1.11 *************** *** 78,88 **** int - SNSdbFetchEntity (char *p_entity_id, SOIP_Entity ** p_entity, - SOIP_DB_Entry * p_entry); - - int - SNSdbFetchDD (int id, SOIP_Dd ** p_dd, SOIP_DB_Entry * p_entry); - - int ISNSdbRead (ISNS_DBKey *key, SOIP_DB_Entry *entry); --- 78,81 ---- |