loadlib.cxx (5900e8ec) loadlib.cxx (0495d53e)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 23 unchanged lines hidden (view full) ---

32#include <osl/module.h>
33#include <rtl/ustring.hxx>
34
35using namespace rtl;
36
37extern "C" {
38struct VersionInfo
39{
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 23 unchanged lines hidden (view full) ---

32#include <osl/module.h>
33#include <rtl/ustring.hxx>
34
35using namespace rtl;
36
37extern "C" {
38struct VersionInfo
39{
40 const char* pTime;
41 const char* pDate;
42 const char* pUpd;
43 const char* pMinor;
44 const char* pBuild;
40 const char* pUpd;
41 const char* pMinor;
42 const char* pBuild;
45 const char* pInpath;
46};
47
48typedef VersionInfo*(__LOADONCALLAPI *GetVersionInfo)(void);
49}
50
51int __LOADONCALLAPI main( int argc, char **argv )
52{
53 VersionInfo *pInfo = NULL;

--- 8 unchanged lines hidden (view full) ---

62 if ( aLibrary )
63 {
64 void* pFunc = osl_getSymbol( aLibrary, OUString::createFromAscii( "GetVersionInfo" ).pData );
65 if ( pFunc )
66 pInfo = (*(GetVersionInfo)pFunc)();
67 }
68 if ( pInfo )
69 {
43};
44
45typedef VersionInfo*(__LOADONCALLAPI *GetVersionInfo)(void);
46}
47
48int __LOADONCALLAPI main( int argc, char **argv )
49{
50 VersionInfo *pInfo = NULL;

--- 8 unchanged lines hidden (view full) ---

59 if ( aLibrary )
60 {
61 void* pFunc = osl_getSymbol( aLibrary, OUString::createFromAscii( "GetVersionInfo" ).pData );
62 if ( pFunc )
63 pInfo = (*(GetVersionInfo)pFunc)();
64 }
65 if ( pInfo )
66 {
70 fprintf( stdout, "Date : %s\n", pInfo->pDate );
71 fprintf( stdout, "Time : %s\n", pInfo->pTime );
72 fprintf( stdout, "UPD : %s\n", pInfo->pUpd );
73 fprintf( stdout, "Minor : %s\n", pInfo->pMinor );
74 fprintf( stdout, "Build : %s\n", pInfo->pBuild );
67 fprintf( stdout, "UPD : %s\n", pInfo->pUpd );
68 fprintf( stdout, "Minor : %s\n", pInfo->pMinor );
69 fprintf( stdout, "Build : %s\n", pInfo->pBuild );
75 fprintf( stdout, "Inpath : %s\n", pInfo->pInpath );
76 }
77 else
78 fprintf( stderr, "VersionInfo not Found !\n" );
79
80 if ( aLibrary )
81 osl_unloadModule( aLibrary );
82
83 return 0;
84}
85
70 }
71 else
72 fprintf( stderr, "VersionInfo not Found !\n" );
73
74 if ( aLibrary )
75 osl_unloadModule( aLibrary );
76
77 return 0;
78}
79