Re: commit (HEAD): UUID work; platform code needed

From: msevior_at_physics.unimelb.edu.au
Date: Sat Jan 24 2004 - 17:17:14 EST

  • Next message: Tomas Frydrych: "commit (HEAD): edit time tracking"

    >
    > I have eventually got to finishing the UT_UUID class; this will cause
    > some platform breakage; what needs to be done is outlined below. To
    > generate UUID, you do
    >
    > UT_UUID * pU = XAP_App::getApp()->getUUIDGenerator()->createUUID();
    >
    > The following is required to fix platform code:
    >
    > Win32
    > have to link against netapi32.lib, snmpapi.lib and ws2_32.lib; if
    > someone who uses the standard MSVC project files could add those and
    > commit, it would be appreciated.
    >
    > Unix
    > Need to debug and turn on implementation of UT_getEthernetAddress()
    > in ut_unixMisc.cpp.
    >

    Hi Tomas,
             Can you explain what you're trying to do here? What happens if
    machine doesn;t have a ethernet addrss (like my laptop without
    it's PCMCIA card?)

    Martin

    > Other platforms
    > Need to provide implementaiton of UT_getEthernetAddress() and
    > UT_gettimeofday() in UT_*Misc.cpp
    >
    > In addition to these required changes, the following might be
    > desirable on all platforms (except win32):
    >
    > Provide derived class UT_*UUID that uses a better source of
    > randomness than UT_rand() in _getRandomBytes(); if you do so, you
    > need to also define UT_*UUIDGenerator and change the call in XAP_*App
    > constructor from
    >
    > _setUUIDGenerator(new UT_UUIDGenerator());
    >
    > to
    >
    > _setUUIDGenerator(new UT_*UUIDGenerator());
    >
    > Looking at ut_Win32Uuid.h/cpp should give you good enough idea.
    >
    > files: xap_App.h/cpp, xap_*App.cpp, ut_uuid.h/cpp,
    > ut_Win32Uuid.h/cpp, ut_Win32Misc.cpp, ut_unixMisc.cpp,
    > pd_Document.h/cpp, ie_imp/exp_AbiWord_1.cpp
    >
    > Tomas
    >
    >



    This archive was generated by hypermail 2.1.4 : Sat Jan 24 2004 - 17:18:28 EST