Commit Graph

6 Commits

Author SHA1 Message Date
David Anderson 12e3ff46a6 *** empty log message ***
svn path=/trunk/boinc/; revision=4832
2004-12-13 01:21:50 +00:00
Bruce Allen 152699da36 Initialized NULL (in static initialized data segment anyway, but be
explicit).

svn path=/trunk/boinc/; revision=4831
2004-12-12 15:21:20 +00:00
Bruce Allen 7211c18865 Added extern C declarations to a couple of header files:
- In graphics_lib.h, this is for compatibility with pure C
      applications.
    - In graphics_impl.h, this would be needed EVEN if we were
      never building app or library with anything other than C++.
      It's because dlsym() can only work if you pass it a non-name
      mangled symbol. Please see:
      http://www.isotton.com/howtos/C++-dlopen-mini-HOWTO/C++-dlopen-mini-HOWTO.html
      for futher edetail.
    - Comments added to graphics_lib.C, better error message.

svn path=/trunk/boinc/; revision=4829
2004-12-12 14:40:43 +00:00
David Anderson 537c820866 *** empty log message ***
svn path=/trunk/boinc/; revision=4820
2004-12-11 01:01:19 +00:00
Bruce Allen 2af4e5e390 David, here's a rough pass, I haven't even tried to compile
it. Please read comments in-line.  I think the major
        shortcoming is
        that most (all?) apps will want to use 'handle' to resolve their
        own functions to communicate data from worker to app graphics.
        Perhaps we should provide an additional argument to
        boinc_init_graphics_lib() for that purpose?  At the right point,
        after sucessful dlopen(), boinc_init_graphics_lib() will call
        that user-supplied function (if not NULL) passing it handle.
        On return boinc_init_graphics_lib() will then carry on and start
        graphics.
        It's fun working on a file that's not in Makefile.  No guilt!

svn path=/trunk/boinc/; revision=4816
2004-12-10 23:33:41 +00:00
David Anderson 4150dcbacc *** empty log message ***
svn path=/trunk/boinc/; revision=4811
2004-12-10 21:06:42 +00:00