aboutsummaryrefslogtreecommitdiff
path: root/nxcomp/Misc.h
diff options
context:
space:
mode:
authorNito Martinez <Nito@Qindel.ES>2015-05-15 15:20:52 +0200
committerNito Martinez <Nito@Qindel.ES>2015-05-15 15:20:52 +0200
commit4fefe352c9d93b0a51ed2e7c34f47a0d951413db (patch)
tree888084a69b2a1e3132c116afe14ba56f28201ae9 /nxcomp/Misc.h
parent8ed8a43d2cad421561d0082949d2bfa9f29c7675 (diff)
downloadnx-libs-4fefe352c9d93b0a51ed2e7c34f47a0d951413db.tar.gz
nx-libs-4fefe352c9d93b0a51ed2e7c34f47a0d951413db.tar.bz2
nx-libs-4fefe352c9d93b0a51ed2e7c34f47a0d951413db.zip
This patch allows to cleanup the nxcomp resources to allow for a second connection inside the same process, instead of a new process as is the nxproxy case.
This involves creating a new API call void NXTransCleanupForReconnect(void); which basically cleans up the global state for the connection but does not exit the process. Background ========== This is needed for the IOS platform, where the nxproxy model of forking does not work. Also NX handles most of the errors with an "exit" call which in IOS cannot be easily handled.
Diffstat (limited to 'nxcomp/Misc.h')
-rw-r--r--nxcomp/Misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/nxcomp/Misc.h b/nxcomp/Misc.h
index 21a503082..0cc396933 100644
--- a/nxcomp/Misc.h
+++ b/nxcomp/Misc.h
@@ -140,6 +140,7 @@ void HandleShutdown() __attribute__((noreturn));
extern "C"
{
void HandleCleanup(int code = 0) __attribute__((noreturn));
+ void HandleCleanupForReconnect();
}
//