From c4e660cc2b8fe1c6547edd085073bc8317a70166 Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Thu, 13 Aug 2009 11:54:35 +0000 Subject: Ticket #886: - Added C++ wrapper files for C source files using exception (PJ_TRY & PJ_THROW). - Updated Symbian MMPs. git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2873 74dad513-b988-da41-8d7b-12977e46ad98 --- build.symbian/pjlib_test.mmp | 6 +++--- build.symbian/pjlib_util.mmp | 4 ++-- build.symbian/pjsdp.mmp | 2 +- build.symbian/pjsip.mmp | 16 ++++++++-------- pjlib-util/src/pjlib-util/resolver_wrap.cpp | 24 ++++++++++++++++++++++++ pjlib-util/src/pjlib-util/xml_wrap.cpp | 24 ++++++++++++++++++++++++ pjlib/src/pjlib-test/exception_wrap.cpp | 24 ++++++++++++++++++++++++ pjlib/src/pjlib-test/pool_wrap.cpp | 24 ++++++++++++++++++++++++ pjlib/src/pjlib-test/test_wrap.cpp | 24 ++++++++++++++++++++++++ pjmedia/src/pjmedia/sdp_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_auth_parser_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_dialog_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_endpoint_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_parser_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_tel_uri_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_transport_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_util_proxy_wrap.cpp | 24 ++++++++++++++++++++++++ pjsip/src/pjsip/sip_util_wrap.cpp | 24 ++++++++++++++++++++++++ 18 files changed, 350 insertions(+), 14 deletions(-) create mode 100644 pjlib-util/src/pjlib-util/resolver_wrap.cpp create mode 100644 pjlib-util/src/pjlib-util/xml_wrap.cpp create mode 100644 pjlib/src/pjlib-test/exception_wrap.cpp create mode 100644 pjlib/src/pjlib-test/pool_wrap.cpp create mode 100644 pjlib/src/pjlib-test/test_wrap.cpp create mode 100644 pjmedia/src/pjmedia/sdp_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_auth_parser_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_dialog_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_endpoint_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_parser_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_tel_uri_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_transport_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_util_proxy_wrap.cpp create mode 100644 pjsip/src/pjsip/sip_util_wrap.cpp diff --git a/build.symbian/pjlib_test.mmp b/build.symbian/pjlib_test.mmp index f82a3672..406b0d50 100644 --- a/build.symbian/pjlib_test.mmp +++ b/build.symbian/pjlib_test.mmp @@ -27,7 +27,7 @@ SOURCE activesock.c SOURCE atomic.c SOURCE echo_clt.c SOURCE errno.c -SOURCE exception.c +SOURCE exception_wrap.cpp SOURCE fifobuf.c SOURCE file.c SOURCE hash_test.c @@ -38,7 +38,7 @@ SOURCE ioq_unreg.c SOURCE list.c SOURCE mutex.c SOURCE os.c -SOURCE pool.c +SOURCE pool_wrap.cpp SOURCE pool_perf.c SOURCE rand.c SOURCE rbtree.c @@ -47,7 +47,7 @@ SOURCE sleep.c SOURCE sock.c SOURCE sock_perf.c SOURCE string.c -SOURCE test.c +SOURCE test_wrap.cpp SOURCE thread.c SOURCE timer.c SOURCE timestamp.c diff --git a/build.symbian/pjlib_util.mmp b/build.symbian/pjlib_util.mmp index bdfab845..5dac2f8f 100644 --- a/build.symbian/pjlib_util.mmp +++ b/build.symbian/pjlib_util.mmp @@ -42,14 +42,14 @@ SOURCE hmac_md5.c SOURCE hmac_sha1.c SOURCE md5.c SOURCE pcap.c -SOURCE resolver.c +SOURCE resolver_wrap.cpp SOURCE scanner.c SOURCE sha1.c SOURCE srv_resolver.c SOURCE string.c SOURCE stun_simple.c SOURCE stun_simple_client.c -SOURCE xml.c +SOURCE xml_wrap.cpp // // Header files diff --git a/build.symbian/pjsdp.mmp b/build.symbian/pjsdp.mmp index 97155509..25f3db19 100644 --- a/build.symbian/pjsdp.mmp +++ b/build.symbian/pjsdp.mmp @@ -32,7 +32,7 @@ OPTION GCCE -x c++ // Platform independent source // SOURCE errno.c -SOURCE sdp.c +SOURCE sdp_wrap.cpp SOURCE sdp_cmp.c SOURCE sdp_neg.c diff --git a/build.symbian/pjsip.mmp b/build.symbian/pjsip.mmp index 57c61160..785a799f 100644 --- a/build.symbian/pjsip.mmp +++ b/build.symbian/pjsip.mmp @@ -36,25 +36,25 @@ OPTION GCCE -x c++ //SOURCE sip_auth_aka.c SOURCE sip_auth_client.c SOURCE sip_auth_msg.c -SOURCE sip_auth_parser.c +SOURCE sip_auth_parser_wrap.cpp SOURCE sip_auth_server.c SOURCE sip_config.c -SOURCE sip_dialog.c -SOURCE sip_endpoint.c +SOURCE sip_dialog_wrap.cpp +SOURCE sip_endpoint_wrap.cpp SOURCE sip_errno.c SOURCE sip_msg.c -SOURCE sip_parser.c +SOURCE sip_parser_wrap.cpp SOURCE sip_resolve.c -SOURCE sip_tel_uri.c +SOURCE sip_tel_uri_wrap.cpp SOURCE sip_transaction.c -SOURCE sip_transport.c +SOURCE sip_transport_wrap.cpp SOURCE sip_transport_loop.c SOURCE sip_transport_tcp.c SOURCE sip_transport_udp.c SOURCE sip_ua_layer.c SOURCE sip_uri.c -SOURCE sip_util.c -SOURCE sip_util_proxy.c +SOURCE sip_util_wrap.cpp +SOURCE sip_util_proxy_wrap.cpp SOURCE sip_util_statefull.c SYSTEMINCLUDE ..\pjlib\include diff --git a/pjlib-util/src/pjlib-util/resolver_wrap.cpp b/pjlib-util/src/pjlib-util/resolver_wrap.cpp new file mode 100644 index 00000000..d6049337 --- /dev/null +++ b/pjlib-util/src/pjlib-util/resolver_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "resolver.c" diff --git a/pjlib-util/src/pjlib-util/xml_wrap.cpp b/pjlib-util/src/pjlib-util/xml_wrap.cpp new file mode 100644 index 00000000..0ba04cdf --- /dev/null +++ b/pjlib-util/src/pjlib-util/xml_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "xml.c" diff --git a/pjlib/src/pjlib-test/exception_wrap.cpp b/pjlib/src/pjlib-test/exception_wrap.cpp new file mode 100644 index 00000000..5172b270 --- /dev/null +++ b/pjlib/src/pjlib-test/exception_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "exception.c" diff --git a/pjlib/src/pjlib-test/pool_wrap.cpp b/pjlib/src/pjlib-test/pool_wrap.cpp new file mode 100644 index 00000000..73e164e5 --- /dev/null +++ b/pjlib/src/pjlib-test/pool_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "pool.c" diff --git a/pjlib/src/pjlib-test/test_wrap.cpp b/pjlib/src/pjlib-test/test_wrap.cpp new file mode 100644 index 00000000..ffdbb04a --- /dev/null +++ b/pjlib/src/pjlib-test/test_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "test.c" diff --git a/pjmedia/src/pjmedia/sdp_wrap.cpp b/pjmedia/src/pjmedia/sdp_wrap.cpp new file mode 100644 index 00000000..423c26fc --- /dev/null +++ b/pjmedia/src/pjmedia/sdp_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sdp.c" diff --git a/pjsip/src/pjsip/sip_auth_parser_wrap.cpp b/pjsip/src/pjsip/sip_auth_parser_wrap.cpp new file mode 100644 index 00000000..ed2549de --- /dev/null +++ b/pjsip/src/pjsip/sip_auth_parser_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_auth_parser.c" diff --git a/pjsip/src/pjsip/sip_dialog_wrap.cpp b/pjsip/src/pjsip/sip_dialog_wrap.cpp new file mode 100644 index 00000000..0411f9d3 --- /dev/null +++ b/pjsip/src/pjsip/sip_dialog_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_dialog.c" diff --git a/pjsip/src/pjsip/sip_endpoint_wrap.cpp b/pjsip/src/pjsip/sip_endpoint_wrap.cpp new file mode 100644 index 00000000..e53c5457 --- /dev/null +++ b/pjsip/src/pjsip/sip_endpoint_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_endpoint.c" diff --git a/pjsip/src/pjsip/sip_parser_wrap.cpp b/pjsip/src/pjsip/sip_parser_wrap.cpp new file mode 100644 index 00000000..fa5ccfa4 --- /dev/null +++ b/pjsip/src/pjsip/sip_parser_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_parser.c" diff --git a/pjsip/src/pjsip/sip_tel_uri_wrap.cpp b/pjsip/src/pjsip/sip_tel_uri_wrap.cpp new file mode 100644 index 00000000..203227c0 --- /dev/null +++ b/pjsip/src/pjsip/sip_tel_uri_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_tel_uri.c" diff --git a/pjsip/src/pjsip/sip_transport_wrap.cpp b/pjsip/src/pjsip/sip_transport_wrap.cpp new file mode 100644 index 00000000..f0031a77 --- /dev/null +++ b/pjsip/src/pjsip/sip_transport_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_transport.c" diff --git a/pjsip/src/pjsip/sip_util_proxy_wrap.cpp b/pjsip/src/pjsip/sip_util_proxy_wrap.cpp new file mode 100644 index 00000000..8a736056 --- /dev/null +++ b/pjsip/src/pjsip/sip_util_proxy_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_util_proxy.c" diff --git a/pjsip/src/pjsip/sip_util_wrap.cpp b/pjsip/src/pjsip/sip_util_wrap.cpp new file mode 100644 index 00000000..69f22cd2 --- /dev/null +++ b/pjsip/src/pjsip/sip_util_wrap.cpp @@ -0,0 +1,24 @@ +/* $Id$ */ +/* + * Copyright (C) 2009 Teluu Inc. (http://www.teluu.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + +/* + * This file is a C++ wrapper, see ticket #886 for details. + */ + +#include "sip_util.c" -- cgit v1.2.3