!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/doc/python-pyorbit/examples/c-inproc/   drwxr-xr-x
Free 129.82 GB of 142.11 GB (91.35%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     c-impl.c (2.99 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#define ORBIT2_STUBS_API

#include <Python.h>
#include <pyorbit.h>
#include "testcall.h"

typedef struct {
    POA_PyORBit_TestCall baseServant;
    PyORBit_TestCall this;
} PyORBit_TestCall_Servant;


static void
TestCall_op1(PortableServer_Servant servant,
         PyORBit_TestCall other,
         CORBA_Environment *ev)
{
    PyORBit_TestCall_Servant *self = (PyORBit_TestCall_Servant *)servant;
    printf("  C impl of TestCall.op1 invoked\n");
    PyORBit_TestCall_op2(other, self->this, ev);
}

static void
TestCall_op2(PortableServer_Servant servant,
         PyORBit_TestCall other,
         CORBA_Environment *ev)
{
    printf("  C impl of TestCall.op2 invoked\n");
    PyORBit_TestCall_op3(other, ev);
}

static void
TestCall_op3(PortableServer_Servant servant,
         CORBA_Environment *ev)
{
    printf("  C impl of TestCall.op3 invoked\n");
}

static PortableServer_ServantBase__epv TestCall_base_epv = {
    NULL,
    NULL,
    NULL
};

static POA_PyORBit_TestCall__epv TestCall_epv = {
    NULL,
    TestCall_op1,
    TestCall_op2,
    TestCall_op3
};

static POA_PyORBit_TestCall__vepv TestCall_vepv = {
    &TestCall_base_epv,
    &TestCall_epv
};


static CORBA_Object
create_TestCall(CORBA_ORB orb, CORBA_Environment *ev)
{
    /* hold the actual servant/objref ... */
    static PyORBit_TestCall_Servant servant;

    PortableServer_ObjectId *objid;
    PortableServer_POA poa;

    if (servant.this) {
    return CORBA_Object_duplicate(servant.this, ev);
    }
    servant.baseServant._private = NULL;
    servant.baseServant.vepv = &TestCall_vepv;

    POA_PyORBit_TestCall__init((PortableServer_ServantBase *)&servant, ev);
    g_assert(ev->_major == CORBA_NO_EXCEPTION);

    poa = (PortableServer_POA)CORBA_ORB_resolve_initial_references(orb, "RootPOA", ev);
    g_assert(ev->_major == CORBA_NO_EXCEPTION);

    objid = PortableServer_POA_activate_object(poa, (PortableServer_ServantBase *)&servant, ev);
    g_assert(ev->_major == CORBA_NO_EXCEPTION);

    servant.this = PortableServer_POA_servant_to_reference(poa, (PortableServer_ServantBase *)&servant, ev);
    g_assert(ev->_major == CORBA_NO_EXCEPTION);

    CORBA_free(objid);

    return CORBA_Object_duplicate(servant.this, ev);
}

static PyObject *
_wrap_create_TestCall(PyObject *self, PyObject *args)
{
    PyCORBA_ORB *orb;
    CORBA_Environment ev;
    CORBA_Object objref;
    PyObject *py_objref;

    if (!PyArg_ParseTuple(args, "O!", &PyCORBA_ORB_Type, &orb))
    return NULL;

    CORBA_exception_init(&ev);
    objref = create_TestCall(orb->orb, &ev);
    g_assert(ev._major == CORBA_NO_EXCEPTION);

    py_objref = pycorba_object_new(objref);
    CORBA_Object_release(objref, NULL);
    return py_objref;
}

static PyMethodDef cTestCall_functions[] = {
    { "create_TestCall", (PyCFunction)_wrap_create_TestCall, METH_VARARGS },
    { NULL, NULL, 0 }
};

void initcTestCall(void);

DL_EXPORT(void)
initcTestCall(void)
{
    PyObject *mod;

    init_pyorbit();

    //ORBit_small_flags &= ~ ORBIT_SMALL_FAST_LOCALS;

    mod = Py_InitModule("cTestCall", cTestCall_functions);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0159 ]--