mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-27 04:50:59 +00:00
lua stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14742 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e853753847
commit
ce14c6c2fa
@ -671,7 +671,7 @@ SWITCH_DECLARE(switch_core_session_t *) switch_core_session_locate(_In_z_ const
|
|||||||
\note if the session was located it will have a read lock obtained which will need to be released with switch_core_session_rwunlock()
|
\note if the session was located it will have a read lock obtained which will need to be released with switch_core_session_rwunlock()
|
||||||
*/
|
*/
|
||||||
#ifdef SWITCH_DEBUG_RWLOCKS
|
#ifdef SWITCH_DEBUG_RWLOCKS
|
||||||
#define switch_core_session_locate(uuid_str) switch_core_session_perform_force_locate(uuid_str, __FILE__, __SWITCH_FUNC__, __LINE__)
|
#define switch_core_session_force_locate(uuid_str) switch_core_session_perform_force_locate(uuid_str, __FILE__, __SWITCH_FUNC__, __LINE__)
|
||||||
#else
|
#else
|
||||||
SWITCH_DECLARE(switch_core_session_t *) switch_core_session_force_locate(_In_z_ const char *uuid_str);
|
SWITCH_DECLARE(switch_core_session_t *) switch_core_session_force_locate(_In_z_ const char *uuid_str);
|
||||||
#endif
|
#endif
|
||||||
|
@ -20,6 +20,10 @@
|
|||||||
|
|
||||||
%ignore SwitchToMempool;
|
%ignore SwitchToMempool;
|
||||||
%newobject EventConsumer::pop;
|
%newobject EventConsumer::pop;
|
||||||
|
%newobject Session;
|
||||||
|
%newobject CoreSession;
|
||||||
|
%newobject Event;
|
||||||
|
%newobject Stream;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* tell swig to grok everything defined in these header files and
|
* tell swig to grok everything defined in these header files and
|
||||||
|
@ -507,7 +507,7 @@ SWITCH_DECLARE_CONSTRUCTOR CoreSession::CoreSession(switch_core_session_t *new_s
|
|||||||
session = new_session;
|
session = new_session;
|
||||||
channel = switch_core_session_get_channel(session);
|
channel = switch_core_session_get_channel(session);
|
||||||
allocated = 1;
|
allocated = 1;
|
||||||
switch_core_session_read_lock(session);
|
switch_core_session_read_lock_hangup(session);
|
||||||
uuid = strdup(switch_core_session_get_uuid(session));
|
uuid = strdup(switch_core_session_get_uuid(session));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user