Ignore:
Timestamp:
Aug 4, 2007, 5:45:12 PM (14 years ago)
Author:
Eugene Romanenko
Message:

better solution for ticket #43

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/plugins/lujpeg/lujpeg.cpp

    r215 r217  
    6868               LuPixbuf *in, float in_x0, float in_y0, float in_x1, float in_y1 );
    6969
    70 unsigned _System LibMain( unsigned hmod, unsigned termination )
     70unsigned EXPENTRY LibMain( unsigned hmod, unsigned termination )
    7171{
    7272    if ( termination ) {
     
    7979
    8080
    81 extern "C" LuDocument * _System createObject()
     81extern "C" LuDocument * EXPENTRY createObject()
    8282{
    8383    return new LuJpegDocument;
    8484}
    8585
    86 extern "C" char * _System getSupportedExtensions()
     86extern "C" char * EXPENTRY getSupportedExtensions()
    8787{
    8888    return "JPG;JPEG;JPE";
    8989}
    9090
    91 LuCheckData   lcd = { 0, 2, (void *)"\xff\xd8" };
    92 LuCheckStruct lcs = { 1, &lcd };
    93 
    94 extern "C" LuCheckStruct * _System getCheckStruct()
    95 {
    96         return &lcs;
    97 }
    98 
    99 
    100 extern "C" char * _System getDescription()
     91static LuSignature      lsig = { 0, 0, 2, (void *)"\xff\xd8" };
     92static LuSignatureList  lsl  = { 1, &lsig };
     93static LuSignatureCheck lsc  = { 1, &lsl };
     94
     95extern "C" LuSignatureCheck * EXPENTRY getSignatureCheck()
     96{
     97        return &lsc;
     98}
     99
     100
     101extern "C" char * EXPENTRY getDescription()
    101102{
    102103    return "Jpeg plugin, based on IJG JPEG Library v6b";
Note: See TracChangeset for help on using the changeset viewer.