~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/libs/pjproject/pjlib/src/pj/log_writer_symbian_console.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* $Id: log_writer_symbian_console.cpp 2394 2008-12-23 17:27:53Z bennylp $ */
2
 
/* 
 
2
/*
3
3
 * Copyright (C) 2008-2009 Teluu Inc. (http://www.teluu.com)
4
4
 * Copyright (C) 2003-2008 Benny Prijono <benny@prijono.org>
5
5
 *
15
15
 *
16
16
 * You should have received a copy of the GNU General Public License
17
17
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
 
18
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
19
 *
20
20
 *  Additional permission under GNU GPL version 3 section 7:
21
21
 *
35
35
#include "os_symbian.h"
36
36
#include <e32cons.h>
37
37
 
38
 
PJ_DEF(void) pj_log_write(int level, const char *buffer, int len)
 
38
PJ_DEF (void) pj_log_write (int level, const char *buffer, int len)
39
39
{
40
40
#if 0
41
41
    wchar_t wbuffer[PJ_LOG_MAX_SIZE];
42
42
    CConsoleBase *cons = PjSymbianOS::Instance->Console();
43
43
 
44
 
    pj_ansi_to_unicode(buffer, len, wbuffer, PJ_ARRAY_SIZE(wbuffer));
45
 
 
46
 
    
47
 
    TPtrC16 aPtr((TUint16*)wbuffer, len);
48
 
    console->Write(aPtr);
 
44
    pj_ansi_to_unicode (buffer, len, wbuffer, PJ_ARRAY_SIZE (wbuffer));
 
45
 
 
46
 
 
47
    TPtrC16 aPtr ( (TUint16*) wbuffer, len);
 
48
    console->Write (aPtr);
49
49
#else
50
 
    PJ_UNUSED_ARG(level);
51
 
    PJ_UNUSED_ARG(buffer);
52
 
    PJ_UNUSED_ARG(len);
 
50
    PJ_UNUSED_ARG (level);
 
51
    PJ_UNUSED_ARG (buffer);
 
52
    PJ_UNUSED_ARG (len);
53
53
#endif
54
54
}
55
55