]> rtime.felk.cvut.cz Git - orte.git/commit
JORTE: fix memory leak and add DomainEvents to DomainMgr
authorMartin Vajnar <martin.vajnar@gmail.com>
Tue, 23 Jul 2013 09:09:39 +0000 (11:09 +0200)
committerMartin Vajnar <martin.vajnar@gmail.com>
Tue, 23 Jul 2013 09:09:39 +0000 (11:09 +0200)
commit7a66648319b56d8b59510dbdd11604ea99e74e1e
tree9b99e0f95d18b30b9531445fdd933f70874f97bd
parent30702a947dce0e17aed247c7e1fe734b5ef8e8f3
JORTE: fix memory leak and add DomainEvents to DomainMgr

Memory leaks in jORTEDomainAppCreate() and jORTEDomainMgrCreate()
(domain events callback structure) are fixed. Domain events callbacks
are placed in a separate file. Their prototypes are placed in "jorte/
/jorte_protos_api.h". This way they could be used by DomainApp
and DomainMgr.

Native functions in both DomainApp.java and DomainMgr.java are now non-
static. This allows native domain destructor to free the memory allocated
to domain events callback structure.

It is now also possible to pass null for DomainEvents or DomainProp to
DomainApp and DomainMgr constructors.

The header file onLoad.h is removed and the findClass() prototype is placed
into "jorte/jorte_protos_api.h".
21 files changed:
orte/include/jorte/4all.h
orte/include/jorte/jorte_protos_api.h
orte/include/jorte/onLoad.h [deleted file]
orte/include/jorte/org_ocera_orte_DomainApp.h
orte/include/jorte/org_ocera_orte_DomainMgr.h
orte/java/src/org/ocera/orte/Domain.java
orte/java/src/org/ocera/orte/DomainApp.java
orte/java/src/org/ocera/orte/DomainMgr.java
orte/java/src/org/ocera/orte/Manager.java
orte/java/src/org/ocera/orte/examples/hello/MyManager.java [new file with mode: 0644]
orte/java/src/org/ocera/orte/types/DomainProp.java
orte/java/src/org/ocera/orte/types/ManagerEvents.java [new file with mode: 0644]
orte/libjorte/JORTEDomainAppCreate.c
orte/libjorte/JORTEDomainAppDestroy.c
orte/libjorte/JORTEDomainEvents.c [new file with mode: 0644]
orte/libjorte/JORTEDomainMgrCreate.c
orte/libjorte/JORTEDomainMgrDestroy.c
orte/libjorte/JORTEPublicationGetStatus.c
orte/libjorte/JORTESubscriptionDestroy.c
orte/libjorte/JORTESubscriptionGetStatus.c
orte/libjorte/Makefile.omk