[prev in list] [next in list] [prev in thread] [next in thread] 

List:       oprofile-commits
Subject:    [oprof-cvs] CVS: oprofile/libabi abi_test.cpp,1.18,1.19 op_import.cpp,1.24,1.25
From:       John Levon <movement () users ! sourceforge ! net>
Date:       2004-05-28 18:52:21
Message-ID: E1BTmSr-0005OC-D9 () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/oprofile/oprofile/libabi
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20275/libabi

Modified Files:
	abi_test.cpp op_import.cpp 
Log Message:
clean up libdb API a little


Index: abi_test.cpp
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libabi/abi_test.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -p -d -r1.18 -r1.19
--- abi_test.cpp	19 Jan 2004 20:00:24 -0000	1.18
+++ abi_test.cpp	28 May 2004 18:51:46 -0000	1.19
@@ -65,7 +65,7 @@ int main(int argc, char const ** argv)
 		}
 
 		struct opd_header * header;
-		header = static_cast<struct opd_header *>(dest.base_memory);
+		header = static_cast<struct opd_header *>(odb_get_data(&dest));
 		memset(header, '\0', sizeof(struct opd_header));
 		header->version = OPD_VERSION;
 		memcpy(header->magic, OPD_MAGIC, sizeof(header->magic));

Index: op_import.cpp
===================================================================
RCS file: /cvsroot/oprofile/oprofile/libabi/op_import.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -p -d -r1.24 -r1.25
--- op_import.cpp	19 Jan 2004 20:00:24 -0000	1.24
+++ op_import.cpp	28 May 2004 18:51:46 -0000	1.25
@@ -104,7 +104,7 @@ void import_from_abi(abi const & abi, vo
                      size_t len, samples_odb_t * dest) throw (abi_exception)
 {
 	struct opd_header * head =
-		static_cast<opd_header *>(dest->base_memory);
+		static_cast<opd_header *>(odb_get_data(dest));
 	unsigned char const * src = static_cast<unsigned char const *>(srcv);
 	unsigned char const * const begin = src;
 	extractor ext(abi, src, len);	



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
Oprofile-commits mailing list
Oprofile-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oprofile-commits
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic