Go to the FreeLists Home Page Home Signup Help Login
 



[openbeos] || [Date Prev] [09-2001 Date Index] [Date Next] || [Thread Prev] [09-2001 Thread Index] [Thread Next]

[openbeos] libscreensaver.so Proof of Concept

  • From: <jason_gerstenberger@xxxxxxxxx>
  • To: <openbeos@xxxxxxxxxxxxx>
  • Date: Thu, 6 Sep 2001 23:09:38 -0400
Gents,

To get myself familiar with what we're trying to do in a more hands on way,
I picked the smallest .so from /boot/beos/system/lib (libscreensaver.so) and
attempted to create a "replacement".  I described my process below and it
seems to have worked.  Obviously this is a very trivial example, but I think
it's a microcosm of what you would do for any library.

Please let me know if I have made any oversights.  The finished .cpp file
and the compiled .so are at www.geocities.com/jason_gerstenberger

- Jason



How to create an Open Source libscreensaver.so in 30 Minutes

1.  Create a new shared library project
2.  Copy the ScreenSaver.h file into your project directory and add to your
project
3.  Run stubgen -n -q -g -a ScreenSaver.h to create the cpp
4.  Read through objdump for clues (for this lib you don't need many at
all!)
5.  Build your lib & compare objdumps for your s.o. with the factory s.o.
So far as I could tell, my disassem was identical
6.  Backup existing lib and insert new one






[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.