Project

General

Profile

« Previous | Next » 

Revision 3137

Added by stephane over 13 years ago

LIB_GBASE
LIB_GNET
LIB_KEYFILE
LIB_PCRE

View differences:

scol_glib_keyfile.c
1513 1513
{
1514 1514
    MMechostr (0, "\nG KEY FILE library released !\n");
1515 1515
    return 0;
1516
}
1516
}
1517

  
1518

  
1519
#if ((defined _WIN32) || (defined __WIN32__))
1520
# define SCOL_GBASE_PLUGIN_EXPORT __declspec (dllexport)
1521
#elif ((defined linux) || (defined __linux))
1522
# define SCOL_GBASE_PLUGIN_EXPORT
1523
#else
1524
# error no platform supported
1525
#endif
1526

  
1527
SCOL_GBASE_PLUGIN_EXPORT int SCOLloadGBASE(mmachine m, cbmachine w)
1528
{
1529
    ww = w;
1530
    mm = m;
1531

  
1532
    SCOLinitplugin(w);
1533
    return SCOLinitGlibKeyClass (m);
1534
}
1535

  
1536
SCOL_GBASE_PLUGIN_EXPORT int SCOLfreeGBASE()
1537
{
1538
    GkeyRelease ();
1539
    return 0;
1540
}
1517 1541

  
1518
/**
1519
 * \private
1520
 * \brief Load the key file library
1521
 * 1- MS Windows
1522
 * 2- GNU / Linux
1523
 */
1524
#if ((defined _WIN32) || (defined __WIN32__))
1525

  
1526
__declspec (dllexport) int SCOLloadGKEYFILE (mmachine m, cbmachine w)
1527
{
1528
    int k = 0;
1529
    ww = w;
1530
    mm = m;
1531

  
1532
    SCOLinitplugin (w);
1533
    if ((k = SCOLinitGlibKeyClass (m))) return k;
1534
    MMechostr(MSKDEBUG, "\nG KEY FILE library loaded !\n");
1535
    return k;
1536
}
1537

  
1538
__declspec (dllexport) int SCOLfreeGKEYFILE ()
1539
{
1540
    GkeyRelease ();
1541
    return 0;
1542
}
1543

  
1544

  
1545

  
1546

  
1547

  
1548
/* Version GNU / Linux */
1549
#elif ((defined linux) || (defined __linux))
1550

  
1551
int SCOLloadGKEYFILE (mmachine m)
1552
{
1553
    int k = 0;
1554
    mm = m;
1555

  
1556
    if ((k = SCOLinitGlibKeyClass (m))) return k;
1557
    MMechostr (MSKDEBUG, "\nG KEY FILE library loaded !\n");
1558

  
1559
    return k;
1560
}
1561

  
1562
int SCOLfreeGKEYFILE ()
1563
{
1564
    GkeyRelease ();
1565
    return 0;
1566
}
1567

  
1568
#else
1569
#error no platform supported
1570
#endif
1571

  

Also available in: Unified diff