Back to home page

Enduro/X

 
 

    


0001 /**
0002  * @brief No main entry, user calls ndrx_main(argc, argv)
0003  *   this ensure storage for the ndrx_G_tpsvrinit/ndrx_G_tpsvrinit_sys
0004  *   and ndrx_G_tpsvrdone.
0005  *
0006  * @file nomain.c
0007  */
0008 /* -----------------------------------------------------------------------------
0009  * Enduro/X Middleware Platform for Distributed Transaction Processing
0010  * Copyright (C) 2009-2016, ATR Baltic, Ltd. All Rights Reserved.
0011  * Copyright (C) 2017-2023, Mavimax, Ltd. All Rights Reserved.
0012  * This software is released under one of the following licenses:
0013  * AGPL (with Java and Go exceptions) or Mavimax's license for commercial use.
0014  * See LICENSE file for full text.
0015  * -----------------------------------------------------------------------------
0016  * AGPL license:
0017  *
0018  * This program is free software; you can redistribute it and/or modify it under
0019  * the terms of the GNU Affero General Public License, version 3 as published
0020  * by the Free Software Foundation;
0021  *
0022  * This program is distributed in the hope that it will be useful, but WITHOUT ANY
0023  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
0024  * PARTICULAR PURPOSE. See the GNU Affero General Public License, version 3
0025  * for more details.
0026  *
0027  * You should have received a copy of the GNU Affero General Public License along 
0028  * with this program; if not, write to the Free Software Foundation, Inc.,
0029  * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
0030  *
0031  * -----------------------------------------------------------------------------
0032  * A commercial use license is available from Mavimax, Ltd
0033  * contact@mavimax.com
0034  * -----------------------------------------------------------------------------
0035  */
0036 #include <string.h>
0037 #include <stdio.h>
0038 #include <stdlib.h>
0039 #include <memory.h>
0040 #include <ndrstandard.h>
0041 /*---------------------------Externs------------------------------------*/
0042 extern int ndrx_main(int argc, char** argv);
0043 extern int tpsvrinit(int argc, char **argv);
0044 extern void tpsvrdone(void);
0045 /*---------------------------Macros-------------------------------------*/
0046 /*---------------------------Enums--------------------------------------*/
0047 /*---------------------------Typedefs-----------------------------------*/
0048 /*---------------------------Globals------------------------------------*/
0049 
0050 /** server init call */
0051 expublic int (*G_tpsvrinit__)(int, char **) = tpsvrinit;
0052 
0053 /** system call for server init */
0054 expublic int (*ndrx_G_tpsvrinit_sys)(int, char **) = NULL;
0055 
0056 /** call for server done */
0057 expublic void (*G_tpsvrdone__)(void) = tpsvrdone;
0058 
0059 /** Server init func        */
0060 expublic int (*ndrx_G_tpsvrthrinit)(int, char **) = NULL;
0061 
0062 /** thread server done func */
0063 expublic void (*ndrx_G_tpsvrthrdone)(void) = NULL;
0064 
0065 /*---------------------------Statics------------------------------------*/
0066 /*---------------------------Prototypes---------------------------------*/
0067 
0068 /* vim: set ts=4 sw=4 et smartindent: */