source: remove the white spaces. 49/22949/2
authorSooyoung Ha <yoosah.ha@samsung.com>
Fri, 13 Jun 2014 11:21:33 +0000 (20:21 +0900)
committerSooyoung Ha <yoosah.ha@samsung.com>
Fri, 13 Jun 2014 11:35:13 +0000 (20:35 +0900)
Change-Id: I88a2a5239e860867ad9c8583033ef617ff0dc6ff
Signed-off-by: Sooyoung Ha <yoosah.ha@samsung.com>
62 files changed:
LICENSE.GPLv2
debian/changelog
debian/control
debian/rules
lib/libcommon/fileio.c
lib/libcommon/process.c
lib/libsms/sms_header.h
lib/libsms/sms_tool.c
lib/libsms/sms_util.c
lib/libsms/sms_util.h
libvmodem/libvgsm_display.c
libvmodem/libvgsm_init.c
libvmodem/phoneprotocol.h
libvmodem/vgsm_data.h
libvmodem/vgsm_hdlc.h
libvmodem/vgsm_pb.h
libvmodem/vgsm_phone.h
libvmodem/vgsm_sat.h
libvmodem/vgsm_sim.h
libvmodem/vgsm_ss.h
packaging/vmodemd-emul.spec
vmodem/Makefile.in
vmodem/at/at_func.c
vmodem/at/at_recv.c
vmodem/at/at_rx_phonebook.c
vmodem/at/at_rx_security.c
vmodem/at/at_rx_sms.c
vmodem/at/at_rx_ss.c
vmodem/at/at_tx_call.c
vmodem/at/at_tx_security.c
vmodem/at/at_tx_sms.c
vmodem/db/db_gprs.c
vmodem/db/db_network.c
vmodem/db/db_ss.c
vmodem/include/at/at_func.h
vmodem/include/sat/sat_util.h
vmodem/include/sat/sat_values.h
vmodem/include/server/flight.h
vmodem/include/server/state.h
vmodem/include/transport/gsmstate.h
vmodem/oem/oem_rx_network.c
vmodem/oem/oem_rx_security.c
vmodem/oem/oem_tx_security.c
vmodem/sat/sat_values.h
vmodem/server/client.c
vmodem/server/flight.c
vmodem/server/main.c
vmodem/server/phoneserver.c
vmodem/server/server_common_call.c
vmodem/server/server_common_gprs.c
vmodem/server/server_common_network.c
vmodem/server/server_rx_call.c
vmodem/server/server_rx_gprs.c
vmodem/server/server_rx_network.c
vmodem/server/server_rx_sms.c
vmodem/server/server_rx_ss.c
vmodem/server/server_tx_call.c
vmodem/server/server_tx_network.c
vmodem/server/server_tx_security.c
vmodem/server/server_tx_sms.c
vmodem/transport/gsmstate.c
vmodem/transport/transport_dpram.c

index 1a26c21b305fefcd440213642c079690377e2beb..6dc23f26600622f45a95a5e6bc987498e5d1b46c 100644 (file)
@@ -2,14 +2,14 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
 
                      GNU GENERAL PUBLIC LICENSE
                         Version 2, June 1991
+
   Copyright (C) 1989, 1991 Free Software Foundation, Inc.
                         51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
   Everyone is permitted to copy and distribute verbatim copies
   of this license document, but changing it is not allowed.
+
                              Preamble
+
    The licenses for most software are designed to take away your
  freedom to share and change it.  By contrast, the GNU General Public
  License is intended to guarantee your freedom to share and change free
@@ -19,48 +19,48 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  using it.  (Some other Free Software Foundation software is covered by
  the GNU Library General Public License instead.)  You can apply it to
  your programs, too.
+
    When we speak of free software, we are referring to freedom, not
  price.  Our General Public Licenses are designed to make sure that you
  have the freedom to distribute copies of free software (and charge for
  this service if you wish), that you receive source code or can get it
  if you want it, that you can change the software or use pieces of it
  in new free programs; and that you know you can do these things.
+
    To protect your rights, we need to make restrictions that forbid
  anyone to deny you these rights or to ask you to surrender the rights.
  These restrictions translate to certain responsibilities for you if you
  distribute copies of the software, or if you modify it.
+
    For example, if you distribute copies of such a program, whether
  gratis or for a fee, you must give the recipients all the rights that
  you have.  You must make sure that they, too, receive or can get the
  source code.  And you must show them these terms so they know their
  rights.
+
    We protect your rights with two steps: (1) copyright the software, and
  (2) offer you this license which gives you legal permission to copy,
  distribute and/or modify the software.
+
    Also, for each author's protection and ours, we want to make certain
  that everyone understands that there is no warranty for this free
  software.  If the software is modified by someone else and passed on, we
  want its recipients to know that what they have is not the original, so
  that any problems introduced by others will not reflect on the original
  authors' reputations.
+
    Finally, any free program is threatened constantly by software
  patents.  We wish to avoid the danger that redistributors of a free
  program will individually obtain patent licenses, in effect making the
  program proprietary.  To prevent this, we have made it clear that any
  patent must be licensed for everyone's free use or not licensed at all.
+
    The precise terms and conditions for copying, distribution and
  modification follow.
  \f
                      GNU GENERAL PUBLIC LICENSE
     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
    0. This License applies to any program or other work which contains
  a notice placed by the copyright holder saying it may be distributed
  under the terms of this General Public License.  The "Program", below,
@@ -70,14 +70,14 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  either verbatim or with modifications and/or translated into another
  language.  (Hereinafter, translation is included without limitation in
  the term "modification".)  Each licensee is addressed as "you".
+
  Activities other than copying, distribution and modification are not
  covered by this License; they are outside its scope.  The act of
  running the Program is not restricted, and the output from the Program
  is covered only if its contents constitute a work based on the
  Program (independent of having been made by running the Program).
  Whether that is true depends on what the Program does.
+
    1. You may copy and distribute verbatim copies of the Program's
  source code as you receive it, in any medium, provided that you
  conspicuously and appropriately publish on each copy an appropriate
@@ -85,23 +85,23 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  notices that refer to this License and to the absence of any warranty;
  and give any other recipients of the Program a copy of this License
  along with the Program.
+
  You may charge a fee for the physical act of transferring a copy, and
  you may at your option offer warranty protection in exchange for a fee.
+
    2. You may modify your copy or copies of the Program or any portion
  of it, thus forming a work based on the Program, and copy and
  distribute such modifications or work under the terms of Section 1
  above, provided that you also meet all of these conditions:
+
      a) You must cause the modified files to carry prominent notices
      stating that you changed the files and the date of any change.
+
      b) You must cause any work that you distribute or publish, that in
      whole or in part contains or is derived from the Program or any
      part thereof, to be licensed as a whole at no charge to all third
      parties under the terms of this License.
+
      c) If the modified program normally reads commands interactively
      when run, you must cause it, when started running for such
      interactive use in the most ordinary way, to print or display an
@@ -122,38 +122,38 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  on the Program, the distribution of the whole must be on the terms of
  this License, whose permissions for other licensees extend to the
  entire whole, and thus to each and every part regardless of who wrote it.
+
  Thus, it is not the intent of this section to claim rights or contest
  your rights to work written entirely by you; rather, the intent is to
  exercise the right to control the distribution of derivative or
  collective works based on the Program.
+
  In addition, mere aggregation of another work not based on the Program
  with the Program (or with a work based on the Program) on a volume of
  a storage or distribution medium does not bring the other work under
  the scope of this License.
+
    3. You may copy and distribute the Program (or a work based on it,
  under Section 2) in object code or executable form under the terms of
  Sections 1 and 2 above provided that you also do one of the following:
+
      a) Accompany it with the complete corresponding machine-readable
      source code, which must be distributed under the terms of Sections
      1 and 2 above on a medium customarily used for software interchange; or,
+
      b) Accompany it with a written offer, valid for at least three
      years, to give any third party, for a charge no more than your
      cost of physically performing source distribution, a complete
      machine-readable copy of the corresponding source code, to be
      distributed under the terms of Sections 1 and 2 above on a medium
      customarily used for software interchange; or,
+
      c) Accompany it with the information you received as to the offer
      to distribute corresponding source code.  (This alternative is
      allowed only for noncommercial distribution and only if you
      received the program in object code or executable form with such
      an offer, in accord with Subsection b above.)
+
  The source code for a work means the preferred form of the work for
  making modifications to it.  For an executable work, complete source
  code means all the source code for all modules it contains, plus any
@@ -164,7 +164,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  form) with the major components (compiler, kernel, and so on) of the
  operating system on which the executable runs, unless that component
  itself accompanies the executable.
+
  If distribution of executable or object code is made by offering
  access to copy from a designated place, then offering equivalent
  access to copy the source code from the same place counts as
@@ -178,7 +178,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  However, parties who have received copies, or rights, from you under
  this License will not have their licenses terminated so long as such
  parties remain in full compliance.
+
    5. You are not required to accept this License, since you have not
  signed it.  However, nothing else grants you permission to modify or
  distribute the Program or its derivative works.  These actions are
@@ -187,7 +187,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  Program), you indicate your acceptance of this License to do so, and
  all its terms and conditions for copying, distributing or modifying
  the Program or works based on it.
+
    6. Each time you redistribute the Program (or any work based on the
  Program), the recipient automatically receives a license from the
  original licensor to copy, distribute or modify the Program subject to
@@ -195,7 +195,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  restrictions on the recipients' exercise of the rights granted herein.
  You are not responsible for enforcing compliance by third parties to
  this License.
+
    7. If, as a consequence of a court judgment or allegation of patent
  infringement or for any other reason (not limited to patent issues),
  conditions are imposed on you (whether by court order, agreement or
@@ -208,12 +208,12 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  all those who receive copies directly or indirectly through you, then
  the only way you could satisfy both it and this License would be to
  refrain entirely from distribution of the Program.
+
  If any portion of this section is held invalid or unenforceable under
  any particular circumstance, the balance of the section is intended to
  apply and the section as a whole is intended to apply in other
  circumstances.
+
  It is not the purpose of this section to induce you to infringe any
  patents or other property right claims or to contest validity of any
  such claims; this section has the sole purpose of protecting the
@@ -224,7 +224,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  system; it is up to the author/donor to decide if he or she is willing
  to distribute software through any other system and a licensee cannot
  impose that choice.
+
  This section is intended to make thoroughly clear what is believed to
  be a consequence of the rest of this License.
  \f
@@ -235,12 +235,12 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  those countries, so that distribution is permitted only in or among
  countries not thus excluded.  In such case, this License incorporates
  the limitation as if written in the body of this License.
+
    9. The Free Software Foundation may publish revised and/or new versions
  of the General Public License from time to time.  Such new versions will
  be similar in spirit to the present version, but may differ in detail to
  address new problems or concerns.
+
  Each version is given a distinguishing version number.  If the Program
  specifies a version number of this License which applies to it and "any
  later version", you have the option of following the terms and conditions
@@ -248,7 +248,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  Software Foundation.  If the Program does not specify a version number of
  this License, you may choose any version ever published by the Free Software
  Foundation.
+
    10. If you wish to incorporate parts of the Program into other free
  programs whose distribution conditions are different, write to the author
  to ask for permission.  For software which is copyrighted by the Free
@@ -256,9 +256,9 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  make exceptions for this.  Our decision will be guided by the two goals
  of preserving the free status of all derivatives of our free software and
  of promoting the sharing and reuse of software generally.
+
                              NO WARRANTY
+
    11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
  OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
@@ -268,7 +268,7 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  REPAIR OR CORRECTION.
+
    12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
@@ -278,63 +278,63 @@ Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  POSSIBILITY OF SUCH DAMAGES.
+
                       END OF TERMS AND CONDITIONS
  \f
              How to Apply These Terms to Your New Programs
+
    If you develop a new program, and you want it to be of the greatest
  possible use to the public, the best way to achieve this is to make it
  free software which everyone can redistribute and change under these terms.
+
    To do so, attach the following notices to the program.  It is safest
  to attach them to the start of each source file to most effectively
  convey the exclusion of warranty; and each file should have at least
  the "copyright" line and a pointer to where the full notice is found.
+
      <one line to give the program's name and a brief idea of what it does.>
      Copyright (C) <year>  <name of author>
+
      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., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
+
+
  Also add information on how to contact you by electronic and paper mail.
+
  If the program is interactive, make it output a short notice like this
  when it starts in an interactive mode:
+
      Gnomovision version 69, Copyright (C) year name of author
      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
      This is free software, and you are welcome to redistribute it
      under certain conditions; type `show c' for details.
+
  The hypothetical commands `show w' and `show c' should show the appropriate
  parts of the General Public License.  Of course, the commands you use may
  be called something other than `show w' and `show c'; they could even be
  mouse-clicks or menu items--whatever suits your program.
+
  You should also get your employer (if you work as a programmer) or your
  school, if any, to sign a "copyright disclaimer" for the program, if
  necessary.  Here is a sample; alter the names:
+
    Yoyodyne, Inc., hereby disclaims all copyright interest in the program
    `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
    <signature of Ty Coon>, 1 April 1989
    Ty Coon, President of Vice
+
  This General Public License does not permit incorporating your program into
  proprietary programs.  If your program is a subroutine library, you may
  consider it more useful to permit linking proprietary applications with the
index 3154fdd6c6bde0a859d154146806df6f2472d8e0..cfee817a5d5b19a290d1d9f437c25b18f2b18394 100644 (file)
@@ -115,7 +115,7 @@ vmodemd-emul (0.2.8) unstable; urgency=low
 
   * unlimited check sim bug is fixed.
   * add CRSM param get command for mo sms.
-  * modified ss.db for support query of video call 
+  * modified ss.db for support query of video call
   * Git: slp/pkgs/v/vmodem-daemon-emulator
   * Tag: vmodemd-emul_0.2.8
 
index 21a522ab585fac8eebc79dc03ce954a80ccedc73..09d2913f85ae3eccd723a49753dc112b7bf85675 100644 (file)
@@ -7,5 +7,5 @@ Standards-Version: 0.2.23
 
 Package: vmodemd-emul
 Architecture: i386
-Depends: 
+Depends:
 Description: Modem Emulator
index e8ce8d9a8300c44bf92e94e80c3345f142df1ec1..f938d12447826af4785b10f30fa92d8f58d953d7 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-package=vmodemd-emul 
+package=vmodemd-emul
 
 SRCDIR = .
 CC     = gcc
@@ -27,7 +27,7 @@ install: build
 binary-arch: install
        dh_testdir
        dh_testroot
-#      dh_installchangelogs 
+#      dh_installchangelogs
 #      dh_installdocs
 #      dh_installexamples
        dh_install --sourcedir=debian/tmp
index 1aa7aa9c92267217d217a8a83d2027eabb8d4cdf..3e36098ee27fe0fbcf47456c629df43daad57c0b 100644 (file)
@@ -166,7 +166,7 @@ gchar *get_kernel_path(void)
  * @param      org path to change (C:\\test\\test\\test)
  * @return     changed path (C:/test/test/test)
  * @date    Nov 19. 2009
- * */ 
+ * */
 gchar *change_path_to_slash(gchar *org_path)
 {      
     if (!org_path || strlen(org_path) < 1)
index 2e83b09ccd2511b28e1cf149708dc53250379f4f..d9a103a1fd5569a9b2ceac5cf8a27db874fb686c 100644 (file)
@@ -134,7 +134,7 @@ static void save_pid(int fd, pid_t pid)
  * @brief      make pid directory
  * @param      pidfname : pid file name
  * @date    Nov 25. 2008
- * */ 
+ * */
 
 static int make_pid_path(const char *pidfname)
 {
@@ -161,12 +161,12 @@ static int make_pid_path(const char *pidfname)
            return -1;
        }
 #ifdef _WIN32
-       if (dir != NULL && strlen (dir) > 0) 
+       if (dir != NULL && strlen (dir) > 0)
 #endif                 
            strcat(dir, "/");
        strcat(dir, lptr);
 
-       if (access(dir, R_OK) != 0) 
+       if (access(dir, R_OK) != 0)
 #ifndef _WIN32
            mkdir(dir, S_IRWXU | S_IRWXG);
 #else
@@ -234,7 +234,7 @@ int write_pidfile(const char *filename)
 {
     int                fd = -1;
     char       buf[128] = "";
-    char       pidfname[512] = ""; 
+    char       pidfname[512] = "";
 
     // sprintf (pidfname, "%s%s.pid", PID_DIR, filename);
 #ifndef _WIN32
@@ -283,7 +283,7 @@ int write_pidfile(const char *filename)
 
 int remove_pidfile(const char *filename)
 {
-    char       pidfname[512] = ""; 
+    char       pidfname[512] = "";
 
     if (filename == NULL) {
        return -1;
@@ -314,7 +314,7 @@ int remove_pidfile(const char *filename)
     return 0;
 }
 
-    FILE * 
+    FILE *
 popen_target(const char *cmdstring, const char *type)
 {
     FILE       *fp;
index cfe0541104ac4304546234ca423d9499b39ae271..fe9e9f567f0a42bd7b84b8895ff52c00b833a69b 100644 (file)
@@ -195,7 +195,7 @@ typedef enum
 
 }NumberingPlan;
 
-typedef struct 
+typedef struct
 {
     NumberType                 ton;
 
index 034a942f4f177d2d234351b02f71b38b7bb40085..5f2948b90403bd1dc912505b291f11979a37fc39 100644 (file)
   ==================================================================================================*/
 // ETSI GSM 03.38 7-bit default alphabet -> Unicode scalar value (UCS2)
 // index : gsm 7bit char value
-static const unsigned short g_GSM7BitToUCS2Table[] = 
+static const unsigned short g_GSM7BitToUCS2Table[] =
 {
-    0x40/*@*/, 0xA3, 0x24, 0xA5, 0xE8, 0xE9, 0xF9, 0xEC,               0xF2, 0xC7/*0xE7*/, 0x0A, 0xD8, 0xF8, 0x0D, 0xC5, 0xE5, 
+    0x40/*@*/, 0xA3, 0x24, 0xA5, 0xE8, 0xE9, 0xF9, 0xEC,               0xF2, 0xC7/*0xE7*/, 0x0A, 0xD8, 0xF8, 0x0D, 0xC5, 0xE5,
     0x0394, 0x005F, 0x03A6, 0x0393, 0x039B, 0x03A9, 0x03A0,    0x03A8, 0x03A3, 0x0398, 0x039E, 0x0000, 0x00C6, 0x00E6, 0x00DF, 0x00C9,
-    0x20/*space*/, 33, 34, 35, 164, 37, 38, 39,                                40, 41, 42, 43, 44, 45, 46, 47, 
+    0x20/*space*/, 33, 34, 35, 164, 37, 38, 39,                                40, 41, 42, 43, 44, 45, 46, 47,
     48, 49, 50, 51, 52, 53, 54, 55,                                                    56, 57, 58, 59, 60, 61, 62, 63,
-    161, 65, 66, 67, 68, 69, 70, 71,                                                   72, 73, 74, 75, 76, 77, 78, 79, 
+    161, 65, 66, 67, 68, 69, 70, 71,                                                   72, 73, 74, 75, 76, 77, 78, 79,
     80, 81, 82, 83, 84, 85, 86, 87,                                                    88, 89, 90, 196, 214, 209, 220, 167,
-    191, 97, 98, 99, 100, 101, 102, 103,                                               104, 105, 106, 107, 108, 109, 110,      111, 
+    191, 97, 98, 99, 100, 101, 102, 103,                                               104, 105, 106, 107, 108, 109, 110,      111,
     112, 113, 114, 115, 116, 117, 118, 119,                                    120, 121, 122, 228, 246, 241, 252, 224
        /*
           '@', 0xa3, '$', 0xa5, 0xe8, 0xe9, 0xf9, 0xec,0xf2, 0xc7, '\n', 0xd8, 0xf8, '\r', 0xc5, 0xe5,
@@ -64,7 +64,7 @@ static const unsigned short g_GSM7BitToUCS2Table[] =
         */
 };
 
-static const char g_UCS2ToGSM7BitTable[] = 
+static const char g_UCS2ToGSM7BitTable[] =
 {
     0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,                    0x1b, 0x1b, 0x0a, 0x1b, 0x1b, 0x0d, 0x1b, 0x1b,
     0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,                    0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,
@@ -84,19 +84,19 @@ static const char g_UCS2ToGSM7BitTable[] =
     0x1b, 0x7d, 0x08, 0x1b, 0x1b, 0x1b, 0x7C, 0x1b,                    0x0c, 0x06, 0x1b, 0x1b, 0x7e, 0x1b, 0x1b, 0x1b
 };
 
-static const  unsigned short g_GSM7BitToUCS2TableExt[] = 
+static const  unsigned short g_GSM7BitToUCS2TableExt[] =
 {      // 0x20 -> for invalid code
-    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    0x20, 0x20, 12/**/, 0x20, 0x20, 0x20, 0x20, 0x20, 
+    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    0x20, 0x20, 12/**/, 0x20, 0x20, 0x20, 0x20, 0x20,
     0x20, 0x20, 0x20, 0x20, 94/**/, 0x20, 0x20, 0x20,                  0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
-    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    123/**/, 125/**/, 0x20, 0x20, 0x20, 0x20, 0x20, 92/**/, 
+    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    123/**/, 125/**/, 0x20, 0x20, 0x20, 0x20, 0x20, 92/**/,
     0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    0x20, 0x20, 0x20, 0x20, 91/**/, 126/**/, 93/**/, 0x20,  //64
-    124/**/, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 
+    124/**/, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
     0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,         //104
     0x20, 0x20, 0x20, 0x20, 0x20, 0x20AC/**/, 0x20, 0x20,              0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
     0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,                    0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20
 };
 
-static const char g_UCS2ToGSM7BitTableExt[] = 
+static const char g_UCS2ToGSM7BitTableExt[] =
 {      // 0x1b -> for invalid code
     0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,                    0x1b, 0x1b, 0x1b, 0x1b, 0x0a/**/, 0x1b, 0x1b, 0x1b,             //16
     0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,                    0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b, 0x1b,                 //32
@@ -151,7 +151,7 @@ unsigned char *pDestText                            : destination text (UCS2) - byte order depends on lo
 const unsigned char *pSrcText          : source text (gsm7bit)
 int maxLength                  : max destination buffer size
 int srcTextLen                 : byte length of source text (gsm7bit)
-return : 
+return :
 byte length of converted UCS2 characters
 -1 : The alpha isn't the gsm 7bit code
  */
@@ -258,7 +258,7 @@ int MsgConvertUCS2toGSM7bit(unsigned char *pDestText, int maxLength, const unsig
        if ( upperByte == 0x00 )
        {       // 0x00XX -> converts with mapping table
            if(  g_UCS2ToGSM7BitTable[ lowerByte ] == 0x1b/*27*/ )
-           {  
+           {
                if(g_UCS2ToGSM7BitTableExt[ lowerByte ] == 0x1b)        
                {       // unknown character
                    pDestText[outTextLen++] = 0x20;
index 3c1dc6fc4630567fb3d2ffcdf8b2f2b8d3656cdf..55cd3678931004d5bc6fc0e20191b0149e4032c9 100644 (file)
@@ -69,9 +69,9 @@ char* SmsUtilUnpackGSM8Code( char* szData, const BYTE* pIn, int in_len )
 {
     int i;
 
-    for (i = 0; i < in_len; i ++) {  
+    for (i = 0; i < in_len; i ++) {
        szData [i] = pIn [i];
-    }  
+    }
 
     return szData;     
 }
@@ -130,10 +130,10 @@ int SmsUtilpackGSM8Code( BYTE* pOut, const char* szData, int in_len )
     int i;
     int pos = 0;
 
-    for (i = 0; i < in_len; i ++) {  
+    for (i = 0; i < in_len; i ++) {
        pOut[i] = szData [i];
        pos++;
-    }  
+    }
 
     return pos;        
 }
@@ -502,11 +502,11 @@ int  SmsUtilEncodeAddrField_sca(unsigned char* pAddrField, unsigned char* dialli
     {
        if ( dialnumLen % 2 )
        {
-           pAddrField[index++] = dialnumLen / 2 + 1 + 1; 
+           pAddrField[index++] = dialnumLen / 2 + 1 + 1;
        }
        else
        {
-           pAddrField[index++] = dialnumLen / 2 + 1; 
+           pAddrField[index++] = dialnumLen / 2 + 1;
        }
     }
     else
@@ -523,7 +523,7 @@ int  SmsUtilEncodeAddrField_sca(unsigned char* pAddrField, unsigned char* dialli
 
     SET_TON_NPI( pAddrField[index], ton, npi );
 
-    index++; 
+    index++;
 
     if ( ton != SIM_TON_ALPHA_NUMERIC )
     {
index e2031b6f9c99ed77bac4b053487e16c40afa5304..25c1d0d547aba21c539e215ab4c016666554400a 100644 (file)
@@ -43,7 +43,7 @@
 #define        SIM_TON_RESERVED_FOR_EXT                        7 //reserved for extension
 
 
-#define MAX_UDH_LEN            137 
+#define MAX_UDH_LEN            137
 #define UDH_MAX                        7
 #define SMDATA_SIZE_MAX        160
 
@@ -51,7 +51,7 @@
 #define FAIL                   0x00
 #define SUCCESS                0x01
 //////////////////////////////////TPDU type////////////////////////////////
-typedef enum 
+typedef enum
 {
     SMS_TPDU_DELIVER                           = 0x00, // sc -> ms
     SMS_TPDU_DELIVER_REPORT            = 0x00, // ms -> sc
@@ -162,7 +162,7 @@ typedef struct
     // protocol identifier [M]
     BYTE pId;
 
-    // data coding scheme 
+    // data coding scheme
     TapiNetTextCodingScheme dcs;
 
     // user data length [M]
@@ -179,9 +179,9 @@ typedef struct
     /************HEADER************/
     SmsTPDUType msgType;   //bit 0 ,1
 
-    BOOL mms; // bit 2 
+    BOOL mms; // bit 2
 
-    BOOL rp; // bit 7 
+    BOOL rp; // bit 7
 
     BOOL udhi;  //bit 6
 
index 5b12814d31e5a799644125c3cb0a4b88b84ee1c4..639cb43c47638ec5b4e3602674ccec63e89b1fbe 100644 (file)
@@ -31,7 +31,7 @@
 int vgsm_display_icon_information(LXT_HANDLE* handle, disp_icon_info_t info)
 {
     int nretn = 0;
-    int        length = 5; 
+    int        length = 5;
 
     if( handle == NULL )
        return -1;
index 7ec2532540d93a411c4cbd7192f782862be51561..13375bc6f290bcc2aa3dc043bbae705228dd6433 100644 (file)
@@ -224,8 +224,8 @@ LXT_HANDLE* lxt_initialize(LXT_ID_CLIENT clientclass, LXT_CALLBACK cb)
     //if(is_inet_mode()) //FALSE
     if(1) // 090501    prevent segfault in qemu
     {
-       //printf("[VGSM] INET MODE : LINUX TAPI with coruscant on i819 : [%s][%s]\n", __DATE__, __TIME__);        
-       LIBVGSM_DEBUG("INET MODE : LINUX VGSM\n");        
+       //printf("[VGSM] INET MODE : LINUX TAPI with coruscant on i819 : [%s][%s]\n", __DATE__, __TIME__);
+       LIBVGSM_DEBUG("INET MODE : LINUX VGSM\n");
        if((sockfd = connect_af_inet("127.0.0.1")) == -1)
        {
            LIBVGSM_DEBUG("LINUX VGSM : connect to target failed");
@@ -302,7 +302,7 @@ int vgsm_injector_get_fd(LXT_HANDLE *handle)
    int vgsm_release(LXT_HANDLE* handle)
    {
    int rc = -1;
-   int exit_status; 
+   int exit_status;
 
 // check handle
 if (handle == NULL)
index 2210a4cf2b27922e10c3a52985e20263568587f0..349b5841d2547026ea836941ab8895b4ebd87036 100644 (file)
@@ -79,18 +79,18 @@ typedef enum
     LXT_ID_CLIENT_PHONE_SETUP                                               = 0x0A, // ID of Phone setup
     LXT_ID_CLIENT_CARD_MANAGER                                              = 0x0B, // ID of CARD Manager
     LXT_ID_CLIENT_SMS_DAEMON                                                = 0x0C, // ID of SMS Daemon
-    LXT_ID_CLIENT_GPS                                                       = 0x0D, // ID of GPS 
-    LXT_ID_CLIENT_SECURITY_SETUP                                            = 0x0E, // ID of Security Setup 
-    LXT_ID_CLIENT_SAT                                                                  = 0x0F, // ID of sim application toolkit 
-    LXT_ID_CLIENT_DATA_1                                                       = 0x10, // ID of data 1 
-    LXT_ID_CLIENT_DATA_2                                                       = 0x11, // ID of data 2 
-    LXT_ID_CLIENT_DATA_3                                                       = 0x12, // ID of data 3 
-    LXT_ID_CLIENT_DATA_4                                                       = 0x13, // ID of data 4 
-    LXT_ID_CLIENT_DATA_5                                                       = 0x14, // ID of data 5 
+    LXT_ID_CLIENT_GPS                                                       = 0x0D, // ID of GPS
+    LXT_ID_CLIENT_SECURITY_SETUP                                            = 0x0E, // ID of Security Setup
+    LXT_ID_CLIENT_SAT                                                                  = 0x0F, // ID of sim application toolkit
+    LXT_ID_CLIENT_DATA_1                                                       = 0x10, // ID of data 1
+    LXT_ID_CLIENT_DATA_2                                                       = 0x11, // ID of data 2
+    LXT_ID_CLIENT_DATA_3                                                       = 0x12, // ID of data 3
+    LXT_ID_CLIENT_DATA_4                                                       = 0x13, // ID of data 4
+    LXT_ID_CLIENT_DATA_5                                                       = 0x14, // ID of data 5
     LXT_ID_CLIENT_DATA_6                                                       = 0x15, // ID of data 6
-    LXT_ID_CLIENT_EVENT_INJECTOR                                           = 0x16, //ID of event injector 
-    LXT_ID_CLIENT_EVENT_MANAGER_RX                                         = 0x17, //ID of event injector 
-    LXT_ID_CLIENT_EVENT_MANAGER_TX                                         = 0x18, //ID of event injector 
+    LXT_ID_CLIENT_EVENT_INJECTOR                                           = 0x16, //ID of event injector
+    LXT_ID_CLIENT_EVENT_MANAGER_RX                                         = 0x17, //ID of event injector
+    LXT_ID_CLIENT_EVENT_MANAGER_TX                                         = 0x18, //ID of event injector
     LXT_ID_CLIENT_EVENT_MANAGER                                            = 0x19, //ID of event manager
     LXT_ID_CLIENT_INVALID                                                   = 0x39, // ID of invalid
     LXT_ID_CLIENT_ANY                                                       = 0xff
@@ -119,7 +119,7 @@ enum LXT_GRP
     LXT_GRP_RESPONSE                                                        = 0x5F,  // response
     LXT_GRP_PHONE_BOOK                                                      = 0x61,  // phone book
     LXT_GRP_CARD_SMS                                                        = 0x62,  // card sms
-    LXT_GRP_GPS                                                             = 0x63,  // GPS 
+    LXT_GRP_GPS                                                             = 0x63,  // GPS
     LXT_GRP_EOT                                                             = 0x80   // eot
 
 };
@@ -169,7 +169,7 @@ enum LXT_PHN_PHONE_INFO
     LXT_PHN_INTERNAL_SERVER_SIM_COVER_OPENED                                = 0x50,
     LXT_PHN_INTERNAL_SERVER_SIM_COVER_CLOSED                                = 0x51,
     LXT_PHN_INTERNAL_SERVER_PHONE_REBUILD_START                             = 0x52,
-    LXT_PHN_INTERNAL_SERVER_PHONE_REBUILD_END                               = 0x53,                
+    LXT_PHN_INTERNAL_SERVER_PHONE_REBUILD_END                               = 0x53,
     LXT_PHN_INTERNAL_SERVER_PHONE_FATAL_ERROR                               = 0x54,
     LXT_PHN_INTERNAL_SERVER_PHONE_NV_BACKUP_NOTIFICATION                    = 0x55,
     LXT_PHN_INTERNAL_PHONEBOOK_LOADING_COMPLETION_NOTIFICATION              = 0x56,
@@ -348,9 +348,9 @@ enum LXT_PDA_CALL
     LXT_PDA_CALL_CALL_ORIGINATION2_REQUEST                                  = 0x51,
     LXT_PDA_CALL_GET_VOICE_PRIVACY_OPTION_REQUEST                           = 0x52,
     LXT_PDA_CALL_SET_VOICE_PRIVACY_OPTION_REQUEST                           = 0x53,
-    LXT_PDA_CALL_CURRENT_VOICE_PRIVACY_STATUS_REQUEST                       = 0x54,    
+    LXT_PDA_CALL_CURRENT_VOICE_PRIVACY_STATUS_REQUEST                       = 0x54,
     LXT_PDA_CALL_SOS_CALL_REQUEST                                           = 0x55,
-    LXT_PDA_CALL_REJECT_CALL_REQUEST                                        = 0x56    
+    LXT_PDA_CALL_REJECT_CALL_REQUEST                                        = 0x56
 };
 
 enum LXT_PHN_CALL
@@ -445,7 +445,7 @@ enum LXT_PHN_CARD_SMS
     LXT_PHN_CARD_SMS_DELETE_RESPONSE                                        = 0x44,
     LXT_PHN_CARD_SMS_SET_TAG_RESPONSE                                       = 0x45,
     LXT_PHN_CARD_SMS_CLEAR_RESPONSE                                         = 0x46,
-    LXT_PHN_CARD_SMS_MESSAGE_READY_NOTIFICATION                             = 0x47,    
+    LXT_PHN_CARD_SMS_MESSAGE_READY_NOTIFICATION                             = 0x47,
     LXT_PHN_CARD_SMS_COMPLETE_NOTIFICATION                                  = 0x48,
 
     // GSM
index 2b28457223e9275ab64f855e2bc80d82505c745b..db07330be57dc703ff75e0d0bcf9748dfd67b20c 100644 (file)
@@ -64,7 +64,7 @@ typedef enum{
 typedef enum{
     GSM_DATA_TE2_STATUS_DETACHED,
     GSM_DATA_TE2_STATUS_ATTACHED
-} gsm_data_te2_status_e_type; 
+} gsm_data_te2_status_e_type;
 
 typedef struct tagDataBytesCounter {
     int cur_rx_bytes;
@@ -96,7 +96,7 @@ typedef enum {
     GSM_DATA_TE2_DATA_CALL_RESULT_NO_DIALTONE,         /* 0x05 : NO DIALTONE (maybe not use) */
     GSM_DATA_TE2_DATA_CALL_RESULT_BUSY,                        /* 0x06 : BUSY (maybe not use)*/
     GSM_DATA_TE2_DATA_CALL_RESULT_NO_ANSWER,           /* 0x07 : NO ANSWER */
-    GSM_DATA_TE2_DATA_CALL_RESULT_FDN,         /* 0x08 : FDN */ 
+    GSM_DATA_TE2_DATA_CALL_RESULT_FDN,         /* 0x08 : FDN */
     GSM_DATA_TE2_DATA_CALL_RESULT_MAX
 } gsm_data_te2_data_call_result_e_type;
 
@@ -106,13 +106,13 @@ typedef enum {
     GSM_DATA_CALL_REASON_REGULAR_DEACTIVATION,
     GSM_DATA_CALL_REASON_LLC_SNDCP_FAILURE,
     GSM_DATA_CALL_REASON_INSUFFICIENT_RESOURCES,
-    GSM_DATA_CALL_REASON_MISSING_OR_UNKNOWN_APN,          
+    GSM_DATA_CALL_REASON_MISSING_OR_UNKNOWN_APN,
     GSM_DATA_CALL_REASON_UNKNOWN_PDP_ADDRESS_OR_TYPE,
     GSM_DATA_CALL_REASON_USER_AUTHENTICATION_FAILED,
     GSM_DATA_CALL_REASON_ACTIVATION_REJECTED_BY_GGSN,
     GSM_DATA_CALL_REASON_ACTIVATION_REJECTED_UNSPECIFIED,
     GSM_DATA_CALL_REASON_SERVICE_OPTION_NOT_SUPPORTED,                                 
-    GSM_DATA_CALL_REASON_SERVICE_NOT_SUBSCRIBED, 
+    GSM_DATA_CALL_REASON_SERVICE_NOT_SUBSCRIBED,
     GSM_DATA_CALL_REASON_SERVICE_OUT_OR_ORDER,
     GSM_DATA_CALL_REASON_NSAPI_ALREADY_USED,
     GSM_DATA_CALL_REASON_QOS_NOT_ACCEPTED,
index 800815cbdfe7c1f66416c1b359bee3615e762119..3bb139fadad7e2e10a5bba4ee16d6f2d7aece52f 100644 (file)
@@ -34,7 +34,7 @@
 
 #include "vgsm.h"
 
-// nsclass 
+// nsclass
 typedef struct tagHDLCFrame {
     unsigned char      m_StartMagicCode;
     unsigned short     m_Length;
index 6475db916be4309708b064342ed221727361d615..5113b83b1fe396e92d67bb4b786de4057dbeeafd 100644 (file)
@@ -90,7 +90,7 @@ extern "C"
     } gsm_pb_sub_cmd_type;
 
 
-#if 0 
+#if 0
     /*
        typedef struct tagPB2G {
        unsigned char num_type;
@@ -127,7 +127,7 @@ extern "C"
     typedef struct {
        GSM_PB_ACCESS_MODE mode;
        unsigned short index;
-       unsigned short next_idx; 
+       unsigned short next_idx;
        GSM_PB_CARD pb_type;
        unsigned char len_number;
        unsigned char record_type;
@@ -161,7 +161,7 @@ extern "C"
        GSM_PhoneBookGroupName* grp_name_list;
     } GSM_PhoneBookGroupNameList;
 
-#endif 
+#endif
 
 #ifdef __cplusplus
 }
index 1fe58e8c28a5c8df9cccc5f8870ca60c9b50a7a4..7606ea87ecb372af7bbb6826613eb514897665f7 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef _vgsm_phone_h_
 #define _vgsm_phone_h_
 
-/* 
+/*
  * additional explanation of I858 TAPI
  *
  * I858 TAPI API is not much different from I519/I819. Also
@@ -48,7 +48,7 @@
  *
  */
 
-/* 
+/*
  * Main command group
  */
 #define GSM_CALL                             0x01
@@ -73,7 +73,7 @@
 #define FUNC_SINGLEDB_IND                                              0x02
 
 /* --------------------------------------------------------------------------
-GSM_CLIENT : 
+GSM_CLIENT :
 --------------------------------------------------------------------------*/
 #define GSM_CLIENT_RELEASE_NOTI                0x01
 #define GSM_CLIENT_RELEASE_NOTI_ACK            0x02
@@ -83,14 +83,14 @@ GSM_CALL : Call Control Functions
 
 /*
  * Length : Caller ID length (VAR)
- * Data   : 
- * - Caller ID 
+ * Data   :
+ * - Caller ID
  */
 #define GSM_CALL_MAKE_REQ                     0x21
 /*
  * Length : 2bytes
- * Data   : 
- * - NUM Calls (1byte) 
+ * Data   :
+ * - NUM Calls (1byte)
  * - Call ID   (1byte)
  */
 #define GSM_CALL_HANGUP_REQ                   0x22
@@ -130,7 +130,7 @@ GSM_CALL : Call Control Functions
  */
 #define GSM_CALL_GENERATE_DTMF_REQ            0x27
 
-// EMTRACE_I878 [ 
+// EMTRACE_I878 [
 // Testing purpose
 #define GSM_CALL_GET_FAKE_CALLLIST_REQ         0x28
 // EMTRACE_I878, civily 20051014 ]
@@ -151,8 +151,8 @@ GSM_CALL : Call Control Functions
 
 /*
  * Length : Caller ID length (VAR)
- * Data   : 
- * - Caller ID 
+ * Data   :
+ * - Caller ID
  */
 #define GSM_CALL_MAKE_TO_DEVICE_REQ           0x2C
 #define GSM_CALL_TO_DEVICE_CFRM               0x2D
@@ -186,7 +186,7 @@ GSM_CALL : Notification or Response
  */
 #define GSM_CALL_STATUS_NOTI                  0x22
 /*
- * Length : VAR 1byte(Reserved1) + 1byte(Reserved2) + 
+ * Length : VAR 1byte(Reserved1) + 1byte(Reserved2) +
  * 1byte(Call Count) + (Call Count) * 5 (Call Data)
  * DATA   :
  * - Reserved1      (1byte)
@@ -204,10 +204,10 @@ GSM_CALL : Notification or Response
 #define GSM_CALL_LIST_RES                     0x23
 
 /*
- * Length : VAR 1byte(result) + 1byte(Operation) + 1byte(call Id) + 
+ * Length : VAR 1byte(result) + 1byte(Operation) + 1byte(call Id) +
  * (Call Count) + VAR(Call Count * 1)
  * DATA   :
- * - result (1byte) 
+ * - result (1byte)
  * - GSM_MPTY_OPERATION (1byte) see mzgsmcall.h
  * - GSM_MPTY_PARAM_ID  (1byte) see mzgsmcall.h
  * - active call count  (1byte)
@@ -219,9 +219,9 @@ GSM_CALL : Notification or Response
  * Length : 2
  * Data   :
  * - call id (1byte)
- * - status  (1byte) 
- * 0x01 : waiting Â»Ã³Ã… GSM_Call_Dialing, GSM_Call_Alerting, GSM_Call_Incoming
- * 0x00 : not waiting Â»Ã³Ã… GSM_Call_Active, GSM_Call_Release
+ * - status  (1byte)
+ * 0x01 : waiting state (GSM_Call_Dialing, GSM_Call_Alerting, GSM_Call_Incoming)
+ * 0x00 : not waiting state (GSM_Call_Active, GSM_Call_Release)
  */
 #define GSM_CALL_WAITING_STATUS_IND           0x25
 
@@ -244,8 +244,8 @@ GSM_CALL : Notification or Response
 
 /*
  * Length : 2
- * - Result    : 1 byte 
- * - ALS value : 1 byte 
+ * - Result    : 1 byte
+ * - ALS value : 1 byte
  */
 #define GSM_CALL_GET_AUTO_REDIAL_RES          0x28
 
@@ -301,7 +301,7 @@ GSM_CALL : Notification or Response
 // sunnyfan ]
 
 #define GSM_CALL_STATE                                 0x61
-#define GSM_CALL_ALERT_IND                             0x62 
+#define GSM_CALL_ALERT_IND                             0x62
 
 /* --------------------------------------------------------------------------
 GSM_NETWORK : Network Functions
@@ -349,7 +349,7 @@ GSM_NETWORK : Network Functions
 
 /*
  * Length : 1
- * - Band value : 1 byte 
+ * - Band value : 1 byte
  */
 #define GSM_NETWORK_SET_BAND_REQ              0x37
 
@@ -437,15 +437,15 @@ GSM_NETWORK : Notification or Response
 
 /*
  * Length : 2
- * - Result    : 1 byte 
- * - Band value: 1 byte 
+ * - Result    : 1 byte
+ * - Band value: 1 byte
  */
 #define GSM_NETWORK_GET_BAND_RES              0x37
 
 /*
  * Length : 2
- * - Result    : 1 byte 
- * - Band value: 1 byte 
+ * - Result    : 1 byte
+ * - Band value: 1 byte
  */
 #define GSM_NETWORK_SET_BAND_RES               0x38
 
@@ -476,7 +476,7 @@ GSM_SUPS : Sups Service TX function
 --------------------------------------------------------------------------*/
 /*
  * Length : MMI String length
- * Data   : 
+ * Data   :
  * - MMI String
  */
 #define GSM_SUPS_MMI_REQ                      0x41
@@ -529,7 +529,7 @@ GSM_SUPS : Sups Service TX function
 /*
  * Length : 1(CW_Notify) + 1(GSM_CW_Mode) + 1(GSM_ClassX)
  * Data   :
- * - CW_Notify : (1byte) 
+ * - CW_Notify : (1byte)
  * - CW_Mode   : (1byte)
  * - GSM_ClassX  (1byte)
  */
@@ -538,7 +538,7 @@ GSM_SUPS : Sups Service TX function
 /*
  * Length : 1(CW_Notify) + 1(GSM_CW_Mode) + 1(GSM_ClassX)
  * Data   :
- * - CW_Notify : (1byte) 
+ * - CW_Notify : (1byte)
  * - CW_Mode   : (1byte)
  * - GSM_ClassX  (1byte)
  */
@@ -568,7 +568,7 @@ GSM_SUPS : Sups Service TX function
 #define GSM_SUPS_SET_ACM_MAX_REQ              0x4C
 
 /*
- * Length : 
+ * Length :
  * Data   :
  * - AOC_CURRENCY_Code (1byte)
  * - length            (1byte)
@@ -578,14 +578,14 @@ GSM_SUPS : Sups Service TX function
 
 /*
  * Length : USSD String length
- * Data   : 
+ * Data   :
  * - USSD String
  */
 #define GSM_SUPS_USSD_SEND_REQ                0x4E             
 
 /*
  * Length : 0
- * Data   : 
+ * Data   :
  * - None
  */
 #define GSM_SUPS_USSD_CANCEL_REQ              0x4F
@@ -601,14 +601,14 @@ GSM_SUPS : Sups Service TX function
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - Barring Facility
  */
 #define GSM_SUPS_CB_STATUS_REQ                0x56
 
 /*
  * Length : 0
- * Data   : 
+ * Data   :
  * - None
  */
 #define GSM_SUPS_GET_PPU_REQ                  0x57
@@ -622,7 +622,7 @@ GSM_SUPS : Notification or Response
 /*
  * Length : 1(status) + 1(fac value) + 1(class)
  * Data   :
- * - status      (1byte) 0x00 : not active, 0x01 : active  
+ * - status      (1byte) 0x00 : not active, 0x01 : active
  * - fac   value (1byte) see mzgsmsups.h
  * - class value (1byte) see mzgsmsups.h
  */
@@ -631,7 +631,7 @@ GSM_SUPS : Notification or Response
 /*
  * Length : 1(fac value) + 1(class) + 1(mode)
  * Data   :
- * - result (1byte) 
+ * - result (1byte)
  * - fac    (1byte) see mzgsmsups.h
  * - remain (1byte)
  */
@@ -769,20 +769,20 @@ GSM_SUPS : Notification or Response
  */
 #define GSM_SUPS_GET_PPU_RES                  0x55
 
-#define GSM_SUPS_STATE                 0x56 
-#define GSM_SUPS_CONFERENCE                    0x57 
-#define GSM_SUPS_HOLD                  0x58 
-#define GSM_SUPS_UNHOLD                        0x59 
-#define GSM_SUPS_AOC_SET        0x5a 
-#define GSM_SUPS_AOC_GET        0x5b 
-#define GSM_SUPS_CW_SET                        0xe0 
-#define GSM_SUPS_CW_GET                        0xe1 
-#define GSM_SUPS_CF_SET                        0xe2 
-#define GSM_SUPS_CF_GET                        0xe3 
-#define GSM_SUPS_CB_SET                        0xe4 
-#define GSM_SUPS_CB_GET                        0xe5 
-#define GSM_SUPS_USSD_GET       0xe6 
-#define GSM_SUPS_USSD_SET       0xe7 
+#define GSM_SUPS_STATE                 0x56
+#define GSM_SUPS_CONFERENCE                    0x57
+#define GSM_SUPS_HOLD                  0x58
+#define GSM_SUPS_UNHOLD                        0x59
+#define GSM_SUPS_AOC_SET        0x5a
+#define GSM_SUPS_AOC_GET        0x5b
+#define GSM_SUPS_CW_SET                        0xe0
+#define GSM_SUPS_CW_GET                        0xe1
+#define GSM_SUPS_CF_SET                        0xe2
+#define GSM_SUPS_CF_GET                        0xe3
+#define GSM_SUPS_CB_SET                        0xe4
+#define GSM_SUPS_CB_GET                        0xe5
+#define GSM_SUPS_USSD_GET       0xe6
+#define GSM_SUPS_USSD_SET       0xe7
 
 /* --------------------------------------------------------------------------
 GSM_MISC : misc Functions
@@ -906,7 +906,7 @@ GSM_DISPLAY : Notification or Response
  * Length : 2bytes
  * Data   :
  * - Indicator (1byte) see mzgsmmisc.h
- * - Value     (1byte) 
+ * - Value     (1byte)
  */
 #define GSM_DISPLAY_INDICATOR_NOTI            0x71
 
@@ -1199,42 +1199,42 @@ GSM_EXT : Gong Jung mode
 --------------------------------------------------------------------------*/
 /*
  * Length : IMEI length
- * Data   : 
+ * Data   :
  * - IMEI Value
  */
 #define GSM_EXT_SET_IMEI_REQ                  0xB1
 
 /*
  * Length : BTMAC length
- * Data   : 
+ * Data   :
  * - BTMAC Value
  */
 #define GSM_EXT_SET_BTMAC_REQ                 0xB2
 
 /*
  * Length : 0
- * Data   : 
+ * Data   :
  * - None
  */
 #define GSM_EXT_GET_BTMAC_REQ                 0xB3
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - mode : up Or down
  */
 #define GSM_EXT_SET_VOICE_VOL_REQ             0xB4
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - path : Audio path
  */
 #define GSM_EXT_SET_AUDIO_PATH_REQ            0xB5
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - path : Phone State
  */
 #define GSM_EXT_SET_INTERNAL_STATE_REQ        0xB6
@@ -1243,21 +1243,21 @@ GSM_EXT : Notification or Response
 --------------------------------------------------------------------------*/
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - result
  */
 #define GSM_EXT_SET_IMEI_RES                  0xB1
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - result
  */
 #define GSM_EXT_SET_BTMAC_RES                 0xB2
 
 /*
  * Length : 1 + VAR
- * Data   : 
+ * Data   :
  * - mac length
  * - mac value
  */
@@ -1265,14 +1265,14 @@ GSM_EXT : Notification or Response
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - result
  */
 #define GSM_EXT_BATT_INFO_NOTI                0xB4
 
 /*
  * Length : 1
- * Data   : 
+ * Data   :
  * - result
  */
 #define GSM_EXT_PHONE_POWER_ON_RES            0xB5
index 9eb8708a5a52be61ea7ef9508ee8cfaf63d8d986..cc552216fa9463e536928f1b5ed68dea1427b7da 100644 (file)
@@ -27,7 +27,7 @@
  */
 
 /////////////////////////////////////////////////////////////////////
-// 
+//
 
 #ifndef __vgsm_sat_h__
 #define __vgsm_sat_h__
index f36448984e2ec334d8e91682ff3c614f1db41339..1f4d836d69178cccc3f2ba615787cc546267db5b 100644 (file)
@@ -55,10 +55,10 @@ typedef enum{
 /* LOCK_TYPE  field */
 typedef enum{
     GSM_SEC_LOCK_TYPE_READY,                   /* 0x00 : ME is not locked */
-    GSM_SEC_LOCK_TYPE_PS,                              /* 0x01 : PH-SIM, Lock Phone to SIM/UICC card 
-                                                          ( MT asks password when other than current SIM/UICC card inserted; 
-                                                          MT may remember certain amount of previously used cards thus not 
-                                                          requiring password when they are inserted ) */ 
+    GSM_SEC_LOCK_TYPE_PS,                              /* 0x01 : PH-SIM, Lock Phone to SIM/UICC card
+                                                          ( MT asks password when other than current SIM/UICC card inserted;
+                                                          MT may remember certain amount of previously used cards thus not
+                                                          requiring password when they are inserted ) */
     GSM_SEC_LOCK_TYPE_PF,                              /* 0x02 : PH-FSIM, Lock Phone to the very First inserted SIM/UICC card
                                                           ( MT asks password when other than the first SIM/UICC card is inserted ) */
     GSM_SEC_LOCK_TYPE_SC,                              /* 0x03 : Lock SIM/UICC card ( SIM asks password in ME power-up and when this command is issued ) */
@@ -215,7 +215,7 @@ typedef enum
     GSM_SEC_EFILE_USIM_PHONEBOOK_GAS   = 0x4F0E,               /**< Additional Number */
     GSM_SEC_EFILE_USIM_PHONEBOOK_GAS1  = 0x4F0F,               /**< Second Name Entry */
 
-    GSM_SEC_EFILE_USIM_PHONEBOOK_ANR   = 0x4FF4,               /**< Additional Number */ 
+    GSM_SEC_EFILE_USIM_PHONEBOOK_ANR   = 0x4FF4,               /**< Additional Number */
     GSM_SEC_EFILE_USIM_PHONEBOOK_SNE   = 0x4FF9,               /**< Second Name Entry */
     GSM_SEC_EFILE_USIM_PHONEBOOK_EMAIL = 0x4FFA,               /**< e-mail address */
 #if 1
@@ -379,8 +379,8 @@ typedef struct
 {
     int type1;                         // info : 0, data : 1
     int type2;                         
-    // info -> 0:usim_li, 1:ecc, 2:sst, 3:est, 4:cphs, 5:spn, 6:imsi 
-    // data -> 0:iccid, 1:usim_li, 2:ecc, 3:sst, 4:est, 5:spn, 6:imsi 
+    // info -> 0:usim_li, 1:ecc, 2:sst, 3:est, 4:cphs, 5:spn, 6:imsi
+    // data -> 0:iccid, 1:usim_li, 2:ecc, 3:sst, 4:est, 5:spn, 6:imsi
     int size;
     unsigned char tmp[50];
 }_SIMD_t;
@@ -429,7 +429,7 @@ typedef enum {
     GSM_CMD_CFRM,                              /* 0x04 : Response of the INDICATION */
     GSM_CMD_EVENT,                     /* 0x05 : Notify the status of PDA */
     GSM_PDA_MAX
-} gsm_pda_cmd_e_type; 
+} gsm_pda_cmd_e_type;
 
 /*********************************************************************************/
 
@@ -460,12 +460,12 @@ typedef enum{
     GSM_SEC_CHANGE_LOCKING_PW,                 /* 0x03 : Change Locking Password Message */
     GSM_SEC_SIM_LANG,                                          /* 0x04 : SIM Language Message */
     GSM_SEC_RSIM_ACCESS,                                       /* 0x05 : +CRSM, Restricted SIM Access Message */
-    GSM_SEC_GSIM_ACCESS,                                       /* 0x06 : +CSIM, General SIM Access Message */             
+    GSM_SEC_GSIM_ACCESS,                                       /* 0x06 : +CSIM, General SIM Access Message */
     GSM_SEC_SIM_ICC_TYPE,                                      /* 0x07 : SIM ICC Type Message*/
     GSM_SEC_LOCK_INFO,                                 /* 0x08 : Lock Information Message*/
     GSM_SEC_ISIM_AUTH,                                 /* 0x9 : ISIM Authentication Message */
     GSM_SEC_MAX
-} gsm_sec_sub_cmd_type; 
+} gsm_sec_sub_cmd_type;
 
 /*********************************************************************************/
 #endif
index 3156e33cdbfdee779505b0770d337e04373625fd..e2a87c9de024a7a19c9da7ba1ae1d0fa4d1079b4 100644 (file)
@@ -88,7 +88,7 @@ typedef enum {
 
 // actually, this data structures is used at db.
 typedef enum {
-    SS_CMD_CW = 1, 
+    SS_CMD_CW = 1,
     SS_CMD_CB,
     SS_CMD_CF
 } ss_cmd_e_type;
@@ -140,7 +140,7 @@ typedef struct
     unsigned char CharTypeOfCurrency;                  /**< Specifies the Char type of currency. */
     unsigned char szCurrency[TAPI_SS_AOC_CURRENCY_LEN_MAX];    /**< Specifies the Currency characters. */
 } TelCallAocInfo_t;
-#endif 
+#endif
 // 090213 090330//////////////////////////////////////////////
 typedef struct
 {
index 8104643c2ffa174e3395df8ec2b1427d41188a0f..c2c9b05035068727c859b011a3880b4d1d8d2b67 100644 (file)
@@ -5,6 +5,7 @@ Release: 1
 Summary: Virtual Modem
 Group: System/ModemEmulator
 License: GNU
+ExclusiveArch: %{ix86}
 Source0: %{name}-%{version}.tar.gz
 Source1001: packaging/vmodemd-emul.manifest
 BuildRequires: pkgconfig(glib-2.0)
index c6ec169d63d506c3f6d3e2304bf77ea002f00c80..6c273ccfc24a28dfa5e392bf6bbce001711a2e91 100644 (file)
@@ -14,7 +14,7 @@ CFLAGS += -Wuninitialized
 CFLAGS += -Wpointer-arith
 CFLAGS += -Wp,-MD,$(dir $@).$(notdir $@).d -Wp,-MT,$@
 # for bypass __stack_chk_fail
-CFLAGS +=-fno-stack-protector 
+CFLAGS +=-fno-stack-protector
 
 CC = @CC@
 LD = @LD@
index c66b700702bcf02f83108738a9baaba69bd98b30..e28baf0d404f6112836769580aab514fdb629040 100644 (file)
@@ -3,10 +3,10 @@
  *
  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
  *
- * Contact: 
+ * Contact:
  * Sooyoung Ha <yoosah.ha@samsung.com>
  * YeongKyoon Lee <yeongkyoon.lee@samsung.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
@@ -23,7 +23,7 @@
  *
  * Contributors:
  * - S-Core Co., Ltd
- * 
+ *
  */
 
 /*
@@ -68,7 +68,7 @@ char* find_new_line(char* ptr, bool sms)
     else
     {
        // find new line
-       while (*ptr != '\0' && *ptr != '\r' && *ptr != '\n') 
+       while (*ptr != '\0' && *ptr != '\r' && *ptr != '\n')
        {
            ptr++;
        }
@@ -92,14 +92,14 @@ char* read_cmd_line(void)
     int start_pduIndex = 0;
 
     // empty data
-    if (*s_at_data_ptr == '\0') 
+    if (*s_at_data_ptr == '\0')
     {
        s_at_data_ptr = s_at_data;
        *s_at_data_ptr = '\0';
        data_read = s_at_data;
-    } 
-    else 
-    {   
+    }
+    else
+    {
        while(*s_at_data_ptr == '\r' || *s_at_data_ptr == '\n')
        {
            s_at_data_ptr++;
@@ -107,7 +107,7 @@ char* read_cmd_line(void)
 
        data_eol = find_new_line(s_at_data_ptr, sms);
 
-       if (data_eol == NULL) 
+       if (data_eol == NULL)
        {
            unsigned int data_len;
            data_len = strlen(s_at_data_ptr);
@@ -117,11 +117,11 @@ char* read_cmd_line(void)
        }
     }
 
-    while (data_eol == NULL) 
+    while (data_eol == NULL)
     {
        int data_size = MAX_DATA_RESPONSE - (data_read - s_at_data);
 
-       if(data_size == 0) 
+       if(data_size == 0)
        {
            s_at_data_ptr = s_at_data;
            *s_at_data_ptr = '\0';
@@ -153,7 +153,7 @@ char* read_cmd_line(void)
 
                start_pduIndex = (strlen(ATCMGS) + strlen(length) + strlen(token) + 1);
                sca_length = hexCharToInt(data_read[start_pduIndex]);
-               total_data_length = (pdu_length + sca_length + 1) * 2;  // 1: byte of sca length 
+               total_data_length = (pdu_length + sca_length + 1) * 2;  // 1: byte of sca length
                sms_data_len = start_pduIndex + total_data_length;
 
                TRACE(MSGL_VGSM_INFO, "sca_length:%d, total_data_length: %d, cnt: %d\n", sca_length, total_data_length, cnt);
@@ -224,7 +224,7 @@ int GSM_ATDispatchDpramData(GSM_StateMachine* pstate)
     }
     TRACE(MSGL_VGSM_INFO, "atmsg length: %d\n", strlen(atmsg));        
 
-    // set default value 
+    // set default value
     frame.m_StartMagicCode = 0x7F;
     frame.m_EndMagicCode = 0x7E;
     frame.m_CtrlInfo = 0x7F;
index dd7be6d9a2515a1c167efe6a0163afd966baaf03..9b64097e6ce4ae54e58f1baf5ce038f274f311be 100644 (file)
@@ -335,8 +335,8 @@ int at_recv_ss(char* cmd, char* atmsg)
            {
                return at_rx_ss_cb_get(data);
            }
-           else            
-           {       
+           else
+           {
                NOT_SUPPORTED_AT(atmsg);
                return -1;
            }
index 9bc3a543b841865d978819bedfc74d6fb6e61970..eae51eca4a07dfb49606e2cad502578446bc1e2f 100644 (file)
@@ -44,7 +44,7 @@ int at_rx_sim_pb_default(char* atmsg)
 
 
 /*
-   The only one entry could get on one time, in these times vmodem code, 
+   The only one entry could get on one time, in these times vmodem code,
    so Phonebook is implemented to 2G feature.
  */
 int at_rx_sim_pb_access(char* atmsg)
index c6a725d9cc72de8031845203d968d03f8c403f2e..e8055ba3726717de29b92cf5741eea516c9afbf7 100644 (file)
@@ -65,7 +65,7 @@ int at_rx_sim_sec_check_password(char* atmsg)
     TRACE(MSGL_VGSM_SIM, "\n");
 
     return oem_rx_sim_sec_check_password_req(atmsg, strlen(atmsg));
-} 
+}
 
 int at_rx_sim_sec_change_password(char* atmsg)
 {
@@ -132,7 +132,7 @@ int at_rx_sim_sec_phone_lock_get(char* atmsg)
     {
        if( !strcmp(ret, origPwd) )
            return at_gen_resp_send(AT_GEN_ERR_NO_ERROR);
-       else 
+       else
            return at_gen_resp_send(AT_CME_ERR_INCORRECT_PWD);
     }
     else
@@ -177,8 +177,8 @@ const unsigned char at_g_gsm_efile_spn_info[] = {
     0x62, 0x25, 0x82, 0x02, 0x41, 0x21, 0x83, 0x02,
     0x6f, 0x46, 0xa5, 0x06, 0x80, 0x01, 0x31, 0xc0,
     0x01, 0x00, 0x8a, 0x01, 0x05, 0x8b, 0x06, 0x6f,
-    0x06, 0x01, 0x06, 0x00, 0x06, 0x80, 0x02, 0x00, 
-    0x11, 0x81, 0x02, 0x00, 0x25, 0x88, 0x00 
+    0x06, 0x01, 0x06, 0x00, 0x06, 0x80, 0x02, 0x00,
+    0x11, 0x81, 0x02, 0x00, 0x25, 0x88, 0x00
 };
 
 const unsigned char at_g_gsm_efile_imsi_info[] = {
@@ -534,10 +534,10 @@ static int at_rx_sim_sec_get_rsim_access_req(char* atmsg)
        else if(p1 == 2)
        {
            ptr = at_g_gsm_efile_smsp2_data;
-           len = sizeof at_g_gsm_efile_smsp2_data; 
+           len = sizeof at_g_gsm_efile_smsp2_data;
        }
     }
-    else 
+    else
     {
        TRACE(MSGL_VGSM_INFO, "access type [%02x] file id [%x] (%s)\n", access_cmd, file_id, get_sim_filename(file_id));
 
index b437abc0ded950581722b89f99f548efd32e6613..b49d58722f5a7461470a9a793496fdbd585c9c50 100644 (file)
@@ -36,7 +36,7 @@
 #include "at_func.h"
 
 /* temporarily vconf setup */
-//#define SMS_PARAM_SET_VCONF 
+//#define SMS_PARAM_SET_VCONF
 #ifdef SMS_PARAM_SET_VCONF
 #include <vconf/vconf.h>
 #include <vconf/vconf-keys.h>
@@ -76,7 +76,7 @@ int at_rx_sms_SendMsg(char* atmsg)
     int pdu_len = 0;   
     ret = strtok(tdata+1, token);
     if(ret)
-       pdu_len = atoi(ret); 
+       pdu_len = atoi(ret);
     else
        return 0;
 
@@ -177,26 +177,26 @@ static void at_rx_sms_param_init()
     //Alpha-Id
     g_record[n++] = '1';
     g_record[n++] = '2';
-    g_record[n++] = '3';        
+    g_record[n++] = '3';
     g_record[n++] = '4';
     g_record[n++] = '5';
-    for(i=0; i<(24-5);i++){   
-       g_record[n++] = 0x00;   
-    }   
+    for(i=0; i<(24-5);i++){
+       g_record[n++] = 0x00;
+    }
 
     // parameter indicator
-    g_record[n++] = 0xe9;  
+    g_record[n++] = 0xe9;
 
     // TP-Destination Addr.
-    for(i=0; i<12;i++){   
-       g_record[n++] = 0xff;   
-    }   
+    for(i=0; i<12;i++){
+       g_record[n++] = 0xff;
+    }
 
     //TP-SC addr. // this is raw g_record. +8210911111
-    g_record[n++] = 0x06;   
-    g_record[n++] = 0x91;   
-    g_record[n++] = 0x28;    
-    g_record[n++] = 0x01;    
+    g_record[n++] = 0x06;
+    g_record[n++] = 0x91;
+    g_record[n++] = 0x28;
+    g_record[n++] = 0x01;
     g_record[n++] = 0x19;
     g_record[n++] = 0x11;
     g_record[n++] = 0x11;
@@ -283,7 +283,7 @@ int at_rx_sms_svc_option_set(char* atmsg)
 #define nVPOffset                                      27
 
 #define TAPI_SIM_SMSP_ADDRESS_LEN                      20
-#define MAX_GSM_SMS_PARAM_RECORD_SIZE       156 
+#define MAX_GSM_SMS_PARAM_RECORD_SIZE       156
 
 
 /* msg-service/include/common/MsgSettingTypes.h */
@@ -297,11 +297,11 @@ enum  _MSG_SMS_PID_E
     MSG_PID_ERMES,      /**< Ermes */
     MSG_PID_EMAIL,      /**< Email */
     MSG_PID_MAX     /**< Default */
-};          
+};
 
 /* msg-service/plugin/sms_plugin/include/SmsPluginTypes.h */
 enum _SMS_TON_E
-{ 
+{
     SMS_TON_UNKNOWN = 0,        /* unknown */
     SMS_TON_INTERNATIONAL,  /* international */
     SMS_TON_NATIONAL,           /* national */
@@ -317,13 +317,13 @@ enum _SMS_PID_E
 {
     SMS_PID_NORMAL = 0x00,
 
-    SMS_PID_TELEX = 0x21,       
+    SMS_PID_TELEX = 0x21,
     SMS_PID_GROUP3_TELEX = 0x22,
     SMS_PID_GROUP4_TELEX = 0x23,
     SMS_PID_VOICE = 0x24,
     SMS_PID_ERMES = 0x25,
     SMS_PID_NPS = 0x26,
-    SMS_PID_VIDEO = 0x27, 
+    SMS_PID_VIDEO = 0x27,
     SMS_PID_TELETEX_UNSPEC = 0x28,
     SMS_PID_TELETEX_PSPDN = 0x29,
     SMS_PID_TELETEX_CSPDN = 0x2A,
@@ -363,29 +363,29 @@ static MSG_SMS_PID_T convertPid(SMS_PID_T pid)
 {
     MSG_SMS_PID_T retPid;
 
-    switch (pid) {   
+    switch (pid) {
        case SMS_PID_NORMAL:
            retPid = MSG_PID_TEXT;
-           break;  
+           break;
        case SMS_PID_VOICE:
            retPid = MSG_PID_VOICE;
-           break;  
+           break;
        case SMS_PID_TELEX:
            retPid = MSG_PID_FAX;
-           break;  
+           break;
        case SMS_PID_x400:
            retPid = MSG_PID_X400;
-           break;  
+           break;
        case SMS_PID_ERMES:
            retPid = MSG_PID_ERMES;
-           break;  
+           break;
        case SMS_PID_EMAIL:
            retPid = MSG_PID_EMAIL;
-           break;  
+           break;
        default:
            retPid = MSG_PID_TEXT;
-           break;  
-    } 
+           break;
+    }
 
     return retPid;
 }
@@ -397,7 +397,7 @@ static int convertBcdToDigit(const unsigned char *pBcd, int BcdLen, char *pDigit
     unsigned char temp;
 
     for (i = 0; i < BcdLen; i++)
-    {   
+    {
        temp = pBcd[i] & 0x0F;
 
        if (temp == 0x0A)
@@ -412,10 +412,10 @@ static int convertBcdToDigit(const unsigned char *pBcd, int BcdLen, char *pDigit
        temp = (pBcd[i] & 0xF0) >> 4;
 
        if (temp == 0x0F)
-       {   
+       {
            pDigit[offset] = '\0';
            return offset;
-       }   
+       }
 
        if (temp == 0x0A)
            pDigit[offset++] = '*';
@@ -425,7 +425,7 @@ static int convertBcdToDigit(const unsigned char *pBcd, int BcdLen, char *pDigit
            pDigit[offset++] = 'P';
        else
            pDigit[offset++] = temp + '0';
-    }   
+    }
 
     pDigit[offset] = '\0';
 
@@ -451,16 +451,16 @@ static void decodeSMSC(unsigned char* pAddress, int AddrLen, int ton, char *pDec
 int sms_param_set_vconf()
 {
     int i, alpha_id_len = 0,nOffset = 0;
-    unsigned long AlphaIdLen; 
+    unsigned long AlphaIdLen;
     char szAlphaId[TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX + 1];
     char smscAddr[TAPI_SIM_SMSP_ALPHA_ID_LEN_MAX*2 + 1];
     unsigned char ParamIndicator;
-    unsigned int DialNumLen; 
+    unsigned int DialNumLen;
     unsigned char szDiallingNum[TAPI_SIM_SMSP_ADDRESS_LEN + 1];
-    int Ton=0,  Npi=0; 
-    unsigned short TpProtocolId = 0; 
+    int Ton=0,  Npi=0;
+    unsigned short TpProtocolId = 0;
     unsigned short TpDataCodingScheme = 0;
-    unsigned short TpValidityPeriod = 0; 
+    unsigned short TpValidityPeriod = 0;
     const unsigned char *p = NULL;
 
     p = &g_record[0];
@@ -584,27 +584,27 @@ int sms_param_set_vconf()
     TRACE(MSGL_VGSM_INFO, " VP = %d \n",TpValidityPeriod);
 
     if (vconf_set_str(SMSC_NAME"/0", szAlphaId) != 0 ){
-       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%s]" 
+       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%s]"
                , SMSC_NAME"/0", szAlphaId);
     }
     if (vconf_set_str(SMSC_ADDRESS"/0", smscAddr) != 0 ){
-       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s]=> [%s]" 
+       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s]=> [%s]"
                , SMSC_ADDRESS"/0", smscAddr);
     }
     if (vconf_set_int(SMSC_TON"/0", Ton) != 0 ){
-       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]" 
+       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]"
                , SMSC_TON"/0", Ton);
     }
     if (vconf_set_int(SMSC_NPI"/0", Npi) != 0 ){
-       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]" 
+       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]"
                , SMSC_NPI"/0", Npi);
     }
     if (vconf_set_int(SMSC_PID"/0", (int)convertPid(TpProtocolId)) != 0 ){
-       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]" 
+       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]"
                , SMSC_PID"/0", (int)convertPid(TpProtocolId));
     }
     if (vconf_set_int(SMSC_VAL_PERIOD"/0", TpValidityPeriod) != 0 ){
-       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]" 
+       TRACE(MSGL_VGSM_INFO, "[FAIL] vconf error: [%s] => [%d]"
                , SMSC_VAL_PERIOD"/0", TpValidityPeriod);
     }
 
index e1cf453dfd1082ab254089238be4c0dab095fe0b..7a4add5be23c2936aaa02ca6732d14b5b7fd071b 100644 (file)
@@ -48,7 +48,7 @@
 #include "server_rx_ss.h"
 #include "server_common_ss.h"
 
-#define AO 
+#define AO
 
 int at_rx_ss_default(char* atmsg)
 {
@@ -147,7 +147,7 @@ int at_rx_ss_cf_set(char* atmsg)
        {
            case AT_CALL_FW_MODE_DISABLE:
                ss_mode = SS_MODE_DEACT;
-               break; 
+               break;
            case AT_CALL_FW_MODE_ENABLE:
                ss_mode = SS_MODE_ACT;
                break;
@@ -254,7 +254,7 @@ int at_rx_ss_cb_get(char* atmsg)
 
        if(found)
            cb_type = sDefaultFac[nn].cb_e_type;
-       else 
+       else
            cb_type = SS_CB_TYPE_NONE;
     }
 
index d9bc79907a31dae84738b8a50b845f679162b032..ee265aa8c22372091f3a18d69c6c3d84ea1cba8d 100644 (file)
@@ -75,7 +75,7 @@ int at_tx_call_incoming_noti(void *data, int len)
        at_msg_send(ACK_SEQ_NOTIFICATION, sndbuf, strlen(sndbuf));
        return at_tx_call_status_noti(data, strlen((char*)data));
     } else {
-       TRACE(MSGL_VGSM_INFO, "cannot RING a call, %d, %d, %d \n", rssi, icb, flightMode); 
+       TRACE(MSGL_VGSM_INFO, "cannot RING a call, %d, %d, %d \n", rssi, icb, flightMode);
        return -1;
     }
 
index a550808b29da4429729cc8e6cb0de681050412a5..1d90250c22741da7b64e26ddc26e74745c6527fb 100644 (file)
@@ -76,7 +76,7 @@ int at_tx_sim_sec_get_lock_info_res(void* ptr_data, int data_len)
 }
 
 int at_tx_sim_sec_check_password_res(void* ptr_data)
-{       
+{
     TRACE(MSGL_VGSM_SIM, "res\n");
 
     return at_gen_resp_send((char*)ptr_data);
@@ -151,7 +151,7 @@ int at_tx_sim_sec_get_rsim_access_res(void* ptr_data, int data_len)
        snd_len = strlen(sndbuf);
 
     strcpy(&sndbuf[snd_len], CRLF);
-    snd_len += strlen(CRLF); 
+    snd_len += strlen(CRLF);
 
     TRACE(MSGL_VGSM_SIM, "%s , len:%d", sndbuf, snd_len);
     at_msg_send(ACK_SEQ_RESPONSE, sndbuf, snd_len);
index ad2cfe65ae1cc2be9b59dfba4fae61907003396b..fa2ca01d0eb2345620fa815d1dc5463eee51aec3 100644 (file)
@@ -128,7 +128,7 @@ void sms_response_for_eventinjector()
 {
     LXT_MESSAGE smsres_packet;
 
-    // for sms receive check        
+    // for sms receive check
     TAPIMessageInit(&smsres_packet);
     smsres_packet.group  = GSM_SMS;                 // 0x04
     smsres_packet.action = GSM_SMS_RECEIVE_RES;     // 0x0C
index dd1369ded92664edc727066374937f3419fff2e3..7c78ba092c8ea96c5af6005a5b597f5757ed0d2c 100644 (file)
@@ -44,7 +44,7 @@
 #include "logmsg.h"
 #include "fileio.h"
 
-#ifndef ALP_NOTIFY_DATABASE_DIR 
+#ifndef ALP_NOTIFY_DATABASE_DIR
 #define ALP_NOTIFY_DATABASE_DIR  "./db"
 #endif // P_NOTIFY_DATABASE_DIR
 
@@ -192,7 +192,7 @@ static int vgsm_gprs_sqlite_add(char *apn, char *intf, char cid, short fieldflag
 
     log_msg(MSGL_VGSM_ERR," SQL statement : %s\n", str);
 
-    // add a row 
+    // add a row
     err = sqlite3_exec(db, str, 0, 0, &mesg);
     if (err != SQLITE_OK) {
 
index 459b7bc5958d42ec220ed61fd44e09f75ce03935..68566648db6edd2291b8d9417ae7b9dd4c166090 100644 (file)
@@ -200,7 +200,7 @@ static int vgsm_network_sqlite_add(int  id, int  PLMN_status, char *number_PLMN,
 
     log_msg(MSGL_VGSM_INFO," SQL statement : %s\n", str);
 
-    // add a row 
+    // add a row
     err = sqlite3_exec(db, str, 0, 0, &mesg);
     if(err != SQLITE_OK) {
        log_msg(MSGL_VGSM_ERR,"vgsm_network_sqlite_add: sqlite3_exec err=%d\n",err);
index 9aff0a3b969ae0601babf885232554361915a4bc..60297e7c455634630ca89837b1d133b66f1e197c 100644 (file)
@@ -1132,7 +1132,7 @@ int send_call_barring_entry(call_barring_entry_t* entry)
     data_len =4;
     data = malloc(sizeof(unsigned char) * data_len);
     data[0] = entry->type;
-    data[1] = 1;    // entry->count 
+    data[1] = 1;    // entry->count
     data[2] = entry->tel_class;
     data[3] = ss_status;
 
index f10bee3aa8bae489556f47e34296918d3c098eae..73971b119b862d5de46ebf9903737f22986e44c7 100644 (file)
@@ -181,7 +181,7 @@ typedef enum {
                                     accepts the other (held or waiting) call.*/
     AT_GSM_SS_CM_2_SEND,          /* 0x02 : Places all active calls (if any exist) on hold
                                     and accepts the other (held or waiting) call.*/
-    AT_GSM_SS_CM_3_SEND,          /* 0x03 : Adds a held call to the conversation.*/  
+    AT_GSM_SS_CM_3_SEND,          /* 0x03 : Adds a held call to the conversation.*/
     AT_GSM_SS_CM_4_SEND,          /* 0x04 : Connects the two calls and disconnects
                                     the subscriber from both calls (ECT).*/
     AT_GSM_SS_CM_1X_SEND,         /* 0x05 : Releases a specific active call X.
@@ -209,8 +209,8 @@ typedef enum{
 /* ICC TYPE field */
 typedef enum{
     GSM_SEC_UNKNOWN,           /* 0x00 : UNKNOWN */
-    GSM_SEC_SIM,          
-    GSM_SEC_USIM,         
+    GSM_SEC_SIM,
+    GSM_SEC_USIM,
     GSM_SEC_RSIM
 } gsm_sec_sim_e_type;
 
@@ -223,7 +223,7 @@ typedef enum {
     AT_GSM_PWR_UP_ASLEEP
 } at_gsm_pwr_up_e_type;
 
-typedef enum {  
+typedef enum {
     AT_GSM_PWR_PHONE_ONLINE_OFF = 0x00,                /* ONLINE OFF*/
     AT_GSM_PWR_PHONE_ONLINE_ON,                        /* ONLINE ON */
     AT_GSM_PWR_PHONE_ONLINE_MAX
@@ -321,7 +321,7 @@ static const struct {
 };
 
 static const struct {
-    const char*      fac;     
+    const char*      fac;
     ss_cb_e_type     cb_e_type;
 } sDefaultFac[] =
 {
@@ -345,7 +345,7 @@ static const struct {
 } sDefaultLock[] =
 {
     { "READY", GSM_SEC_LOCK_TYPE_READY},       /* 0x00 : ME is not locked */
-    { "SIM PIN", GSM_SEC_LOCK_TYPE_SC},                /* 0x03 : Lock SIM/UICC card 
+    { "SIM PIN", GSM_SEC_LOCK_TYPE_SC},                /* 0x03 : Lock SIM/UICC card
                                                   ( SIM asks password in ME power-up and when this command is issued ) */
     { "SIM PUK", GSM_SEC_LOCL_TYPE_PUK},       /* 0x0C : Lock PUK (... ) */
     { "SIM PIN2", GSM_SEC_LOCK_TYPE_SC2},      /* 0x09 : Lock PIN2 ( ... ) */
index ed462fe68a12861be4ce81e419d052b8993e81d6..b902e34ab3a2cfcd96b9f4f1abf82f438bef88be 100644 (file)
@@ -43,7 +43,7 @@
 #define        SIM_TON_RESERVED_FOR_EXT                        7 //reserved for extension
 
 
-#define MAX_UDH_LEN            137 
+#define MAX_UDH_LEN            137
 #define UDH_MAX                                7
 #define SMDATA_SIZE_MAX        160
 
@@ -57,7 +57,7 @@
 
 //////////////////////////////////TPDU type////////////////////////////////
 #if 0
-typedef enum 
+typedef enum
 {
     SMS_TPDU_DELIVER                           = 0x00, // sc -> ms
     SMS_TPDU_DELIVER_REPORT            = 0x00, // ms -> sc
@@ -180,7 +180,7 @@ typedef struct
     // protocol identifier [M]
     BYTE pId;
 
-    // data coding scheme 
+    // data coding scheme
     TapiNetTextCodingScheme dcs;
 
     // user data length [M]
@@ -197,9 +197,9 @@ typedef struct
     /************HEADER************/
     SmsTPDUType msgType;   //bit 0 ,1
 
-    BOOL mms; // bit 2 
+    BOOL mms; // bit 2
 
-    BOOL rp; // bit 7 
+    BOOL rp; // bit 7
 
     BOOL udhi;  //bit 6
 
index 9c8adc1d2341b48feef4cece7d13e902a763fe12..31ca39187028030ec63484e3ad072d2a5e5c505c 100644 (file)
@@ -383,7 +383,7 @@ typedef struct _SatCmdResponse SatCmdResponse;
 struct _SatCmdResponse
 {
     char*      respP;                                  //!< Associated text response
-    unsigned char      itemIdentifier;                 //!< Item identifier  
+    unsigned char      itemIdentifier;                 //!< Item identifier
     int        respSize;                               //!< Associated text response size in bytes
     char       cmdId;                                  //!< Command Identifier
     char       respType;                               //!< Expected response type, see ALP_TEL_CAT_RESP_TYPE_XXX
@@ -439,7 +439,7 @@ struct _SatSetUpCall
     int        subAddressSize;                 //!< subaddress size in bytes
     char       bearerCapSize;                  //!< Bearer capability size, in bytes
 
-    unsigned long      duration;                               //!< if the time elapsed since the first call set-up attempt has exceeded the duration request, the redial mechanism shall be terminated 
+    unsigned long      duration;                               //!< if the time elapsed since the first call set-up attempt has exceeded the duration request, the redial mechanism shall be terminated
     char       condition;                              //!< Set up call commmand qualifier, see ALP_TEL_CAT_SETUP_CALL_XXX
 
     char       userConfIconId;                 //!< Icon id. 0 if no icon
@@ -517,7 +517,7 @@ typedef struct _SatItemList SatItemList;
 struct _SatItemList
 {
     SatItem*   firstItemP;                     //!< The first Item
-    int        itemCount;                      //!< Number of items 
+    int        itemCount;                      //!< Number of items
     char       softKey;                        //!< Item can be selected by tapping on its icon
     char       helpInfo;                       //!< Help information is provided by the SIM
     char       defItemId;                      //!< Identifier of the item that should be pre-selected.
@@ -571,16 +571,16 @@ struct _SatOpenChannel
     char       accessPointSize;
 };
 
-//! answer made by the phone module directly to the SIM 
+//! answer made by the phone module directly to the SIM
 typedef struct _SatMEanswer SatMEanswer;
 struct _SatMEanswer    
 {
     char       cmdId;                                  //!< Command Identifier
-    char       resCode;                                //!< Result codes applicable to command iCmdId 
+    char       resCode;                                //!< Result codes applicable to command iCmdId
     char       addInfo;                                //!< Additional information code
 };
 
-//! answer made by the SIM to the phone module CALL CONTROL or MO Short Message CONTROL command 
+//! answer made by the SIM to the phone module CALL CONTROL or MO Short Message CONTROL command
 typedef struct _SatSIManswer SatSIManswer;
 struct _SatSIManswer   
 {
@@ -589,7 +589,7 @@ struct _SatSIManswer
     char*      textP;                          //!< Text to display
     int        textSize;                       //!< The size of the encoded text
 
-    char*      addressP1;                      //!> if it's a call control answer adressP1= dialling number, if the address data is not present, the terminal shall assume the dialling number is not to be modified 
+    char*      addressP1;                      //!> if it's a call control answer adressP1= dialling number, if the address data is not present, the terminal shall assume the dialling number is not to be modified
     //!> if it's a MO short message control answer addressP1= RP_Destination_Address, if the address data object 1 is not present, then the ME shall assume the RP_Destination_Address of the Service Centre is not to be modified.
     char       addressSize1;           //!> address size
 
@@ -605,7 +605,7 @@ struct _SatSIManswer
     char*      capabilityConfP1;       //!< Capability configuration parameters1
     char       capabilityConfSize1;//!< the capability configuration parameters1 size
 
-    char*      capabilityConfP2;       //!< Capability configuration parameters2 
+    char*      capabilityConfP2;       //!< Capability configuration parameters2
     char       capabilityConfSize2;//!< the capability configuration parameters2 size
 };
 
@@ -654,11 +654,11 @@ struct _SatSIManswer
 #define        SAT_TIMER_EXPIRATION                                            0xD7
 
 
-// SIMPLE-TLV data objects tags 
+// SIMPLE-TLV data objects tags
 #define SAT_COMMAND_DETAILS                                            0x01 //!> Command details tag
 #define SAT_DEVICE_IDENTITIES                                          0x02 //!> Device identity tag
 #define SAT_RESULT                                                                     0x03 //!> Result tag
-#define SAT_DURATION                                                           0x04 //!> Duration tag 
+#define SAT_DURATION                                                           0x04 //!> Duration tag
 #define SAT_ALPHA_IDENTIFIER                                           0x05 //!> Alpha identifier tag
 #define SAT_ADDRESS                                                            0x06 //!> Address tag
 #define SAT_CAPABILILITY_CONFIGURATION_PARAMETERS      0x07 //!> Capability configuration parameters tag
@@ -667,28 +667,28 @@ struct _SatSIManswer
 #define SAT_USSD_STRING                                                        0x0A //!> USSD string tag
 #define SAT_SMS_TPDU                                                           0x0B //!> SMS TPDU tag
 #define SAT_CELL_BROADCAST_PAGE                                        0x0C //!> Cell Broadcast page tag
-#define SAT_TEXT_STRING                                                        0x0D //!> Text string tag 
+#define SAT_TEXT_STRING                                                        0x0D //!> Text string tag
 #define SAT_TONE                                                                       0x0E //!> Tone tag
 #define SAT_ITEM                                                                       0x0F //!> Item tag
-#define SAT_ITEM_IDENTIFIER                                            0x10 //!> Item identifier tag 
-#define SAT_RESPONSE_LENGTH                                            0x11 //!> Response length tag 
+#define SAT_ITEM_IDENTIFIER                                            0x10 //!> Item identifier tag
+#define SAT_RESPONSE_LENGTH                                            0x11 //!> Response length tag
 #define SAT_FILE_LIST                                                          0x12 //!> File List tag
 #define SAT_LOCATION_INFORMATION                                       0x13 //!> Location Information tag
-#define SAT_IMEI                                                                       0x14 //!> IMEI tag 
-#define SAT_HELP_REQUEST                                                       0x15 //!> Help request tag 
-#define SAT_NETWORK_MEASUREMENT_RESULTS                        0x16 //!> Network Measurement Results tag 
+#define SAT_IMEI                                                                       0x14 //!> IMEI tag
+#define SAT_HELP_REQUEST                                                       0x15 //!> Help request tag
+#define SAT_NETWORK_MEASUREMENT_RESULTS                        0x16 //!> Network Measurement Results tag
 #define SAT_DEFAULT_TEXT                                                       0x17 //!> Default Text tag
 #define SAT_ITEMS_NEXT_ACTION_INDICATOR                        0x18 //!> Items Next Action Indicator tag
 #define SAT_EVENT_LIST                                                         0x19 //!> Event list tag
 #define SAT_CAUSE                                                                      0x1A //!> Cause tag
-#define SAT_LOCATION_STATUS                                            0x1B //!> Location status tag 
+#define SAT_LOCATION_STATUS                                            0x1B //!> Location status tag
 #define SAT_TRANSACTION_IDENTIFIER                                     0x1C //!> Transaction identifier tag
 #define SAT_BCCH_CHANNEL_LIST                                          0x1D //!> BCCH channel list tag
 #define SAT_ICON_IDENTIFIER                                            0x1E //!> Icon identifier tag
 #define SAT_ITEM_ICON_IDENTIFIER_LIST                          0x1F //!> Item Icon identifier list tag
 //#define SAT_CARD_READER_STATUS                                               0x20 //!> Card reader status tag
 #define SAT_CARD_ATR                                                           0x21 //!> Card ATR tag
-#define SAT_C_ADPU                                                                     0x22 //!> C-APDU tag 
+#define SAT_C_ADPU                                                                     0x22 //!> C-APDU tag
 #define SAT_R_ADPU                                                                     0x23 //!> R-APDU tag
 #define SAT_TIMER_IDENTIFIER                                           0x24 //!> Timer identifier tag
 #define SAT_TIMER_VALUE                                                        0x25 //!> Timer value tag
@@ -701,8 +701,8 @@ struct _SatSIManswer
 #define SAT_DTMF_STRING                                                        0x2C //!> DTMF string tag
 #define SAT_LANGUAGE                                                           0x2D //!> Language tag
 #define SAT_TIMING_ADVANCE                                                     0x2E //!> Timing Advance tag
-#define SAT_AID                                                                        0x2F //!> AID tag 
-#define SAT_BROWSER_IDENTITY                                           0x30 //!> Browser Identity tag 
+#define SAT_AID                                                                        0x2F //!> AID tag
+#define SAT_BROWSER_IDENTITY                                           0x30 //!> Browser Identity tag
 #define SAT_URL                                                                        0x31 //!> URL tag
 #define SAT_BEARER                                                                     0x32 //!> Bearer tag
 #define SAT_PROVISIONING_FILE_REFERENCE                        0x33 //!> Provisioning Reference File tag
@@ -715,11 +715,11 @@ struct _SatSIManswer
 //#define SAT_CARD_READER_IDENTIFIER                                   0x3A //!> Card reader identifier tag
 #define SAT_FILE_UPDATE_INFORMATION                            0x3B //!> File Update Information tag
 #define SAT_SIM_ME_INTERFACE_TRANSPORT_LEVEL           0x3C //!> UICC/terminal interface transport level tag
-// 0x3D Not used                                                           
+// 0x3D Not used
 #define SAT_OTHER_ADDRESS                                                      0x3E //!> Other address (data destination address) tag
 
 
-// 
+//
 //Access Technology tag                                             0x3F
 //Display parameters tag                                            0x40
 //Service Record tag                                                0x41
@@ -749,9 +749,9 @@ struct _SatSIManswer
 //Multimedia Message Reference tag                                                 '6A'
 //Multimedia Message Identifier tag                                            '6B'
 //Reserved for 3GPP (Multimedia Message Transfer Status tag) 1         '6C'
-//MEID tag                                                                                                                     '6D' 
-//Multimedia Message Content Identifier tag                                                    '6E' 
-//Multimedia Message Notification tag                                                          '6F' 
+//MEID tag                                                                                                                     '6D'
+//Multimedia Message Content Identifier tag                                                    '6E'
+//Multimedia Message Notification tag                                                          '6F'
 
 
 // admissible values for kGetDataDeviceIdentities param
@@ -798,8 +798,8 @@ struct _SatSIManswer
 
 //! Card EF access mode
 #define        SAT_CARD_MODE_GET_INFO                                                          0x00    //!<  Get EF information
-#define        SAT_CARD_MODE_READ_FILE                                                         0x01    //!<  Read EF body 
-#define        SAT_CARD_MODE_READ_PART                                                         0x02    //!<  Read EF part 
+#define        SAT_CARD_MODE_READ_FILE                                                         0x01    //!<  Read EF body
+#define        SAT_CARD_MODE_READ_PART                                                         0x02    //!<  Read EF part
 #define        SAT_CARD_MODE_READ_REC                                                          0x03    //!<  Read EF record
 
 //! Card EF structure
@@ -809,7 +809,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! SetUpEventList parameters: each byte in the event list shall be coded with one of the values below: 
+//! SetUpEventList parameters: each byte in the event list shall be coded with one of the values below:
 #define SAT_EVENT_USER_ACTIVITY                                                                0x04    //!< User activity
 #define SAT_EVENT_IDLE_SCREEN_AVAILABLE                                                0x05    //!< Idle screen available
 #define SAT_EVENT_LANGUAGE_SELECTION                                           0x07    //!< Language selection
@@ -863,9 +863,9 @@ struct _SatSIManswer
 
 
 /**********************************************************************************************************************************************************************
- *     
- *             Command qualifier     
- *     
+ *
+ *             Command qualifier
+ *
  **********************************************************************************************************************************************************************/
 
 //! Refresh command qualifier
@@ -879,7 +879,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! SetUpCall command qualifier 
+//! SetUpCall command qualifier
 #define SAT_SETUP_CALL_ONLY_IF_NOT_BUSY                                                                        0x00    //!< Set up call, but only if not currently busy on another call
 #define SAT_SETUP_CALL_ONLY_IF_NOT_BUSY_WITH_REDIAL                                            0x01    //!< Set up call, but only if not currently busy on another call, with redial
 #define SAT_SETUP_CALL_AND_PUT_ALL_OTHER_CALLS_ON_HOLD                                 0x02    //!< Set up call, putting all other calls (if any) on hold
@@ -901,7 +901,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! DISPLAY MULTIMEDIA MESSAGE / DISPLAY TEXT command qualifier 
+//! DISPLAY MULTIMEDIA MESSAGE / DISPLAY TEXT command qualifier
 
 // priority
 #define        SAT_NORMAL_PRIORITY                                                     0x00    //!<normal priority
@@ -920,7 +920,7 @@ struct _SatSIManswer
 #define  SAT_RESP_TYPE_UNPACKED_DIGITS_ONLY                    0x02    // unpacked digits (0 to 9, *, #, and +) only, applies to GetInkey, GetInput
 #define  SAT_RESP_TYPE_PACKED_DIGITS_ONLY                      0x03    // packed digits (0 to 9, *, #, and +) only, applies to GetInput
 #define  SAT_RESP_TYPE_UCS2_DIGITS_ONLY                                0x04    // UCS2 digits (0 to 9, *, #, and +) only, applies to GetInkey, GetInput
-#define  SAT_RESP_TYPE_UNPACKED_SMS_ALPHABET           0x05    // SMS default alphabet 8 bits data, applies to GetInkey, GetInput 
+#define  SAT_RESP_TYPE_UNPACKED_SMS_ALPHABET           0x05    // SMS default alphabet 8 bits data, applies to GetInkey, GetInput
 #define  SAT_RESP_TYPE_PACKED_SMS_ALPHABET                     0x06    // SMS default alphabet 7 bits packed, applies to GetInput
 #define  SAT_RESP_TYPE_UCS2_ALPHABET                           0x07    // 16 bits UCS2 alphabet, applies to GetInkey, GetInput
 
@@ -957,7 +957,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! LaunchBrowser command qualifier 
+//! LaunchBrowser command qualifier
 #define SAT_LAUNCH_BROWSER_IF_NOT_ALREADY_LAUNCHED                             0x00    //!< launch browser if not already launched
 #define SAT_LAUNCH_BROWSER_USE_EXISTING                                                        0x02    //!< use the existing browser (the browser shall not use the active existing secured session)
 #define SAT_LAUNCH_BROWSER_CLOSE_EXISTING_AND_LAUNCH_NEW               0x03    //!< close the existing browser session and launch new browser session
@@ -987,10 +987,10 @@ struct _SatSIManswer
 #define SAT_BEARER_SMS                                                                                 0x00    //!< short message
 #define SAT_BEARER_CSD                                                                                 0x01    //!< circuit switched data
 #define SAT_BEARER_USSD                                                                                        0x02    //!<
-#define SAT_BEARER_GPRS                                                                                        0x03    //!< 
+#define SAT_BEARER_GPRS                                                                                        0x03    //!<
 
 /******************************************************************************************************************************************************/
-//! Command OPEN CHANNEL parameters or response to OPEN CHANNEL: 
+//! Command OPEN CHANNEL parameters or response to OPEN CHANNEL:
 
 //type of adress in the TLV object "Other adress"
 #define        SAT_ADDRESS_IPV4                                                                                0x21
@@ -1001,7 +1001,7 @@ struct _SatSIManswer
 #define        SAT_TRANSPORT_TCP_CLIENT_MODE                                                   0x02    //!< TCP, UICC in client mode (as defined in RFC 793 [10])
 #define        SAT_TRANSPORT_TCP_SERVER_MODE                                                   0x03    //!< TCP, UICC in server mode (as defined in RFC 793 [10])
 
-//! Bearer type in the bearer description parameter 
+//! Bearer type in the bearer description parameter
 #define SAT_CSD                                                                                                        0x01    //!< circuit switched data
 #define SAT_GPRS_3G_PACKET_SERVICE                                                             0x02    //!< GPRS / 3G packet service
 #define SAT_DEFAULT_BEARER                                                                             0x03    //!< default bearer for requested transport layer
@@ -1009,7 +1009,7 @@ struct _SatSIManswer
 #define SAT_BLUETOOTH                                                                                  0x05    //!< Bluetooth
 #define SAT_IRDA                                                                                               0x06    //!< IrDA
 #define SAT_RS232                                                                                              0x07    //!< RS232
-#define SAT_PACKET_DATA_SERVICE                                                                        0x08    //!< TIA/EIA/IS-820 packet data service 
+#define SAT_PACKET_DATA_SERVICE                                                                        0x08    //!< TIA/EIA/IS-820 packet data service
 #define SAT_UTRAN                                                                                              0x09    //!< UTRAN packet service with extended parameters
 #define SAT_USB                                                                                                        0x10    //!< USB
 
@@ -1028,14 +1028,14 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-// Command Menu Selection parameters:  
+// Command Menu Selection parameters:
 #define SAT_MENU_SELECTION_NO_HELP_REQUESTED                   0x00 //!< do not insert help request tag in the enveloppe message MENU SELECTION
 #define SAT_MENU_SELECTION_HELP_REQUESTED                              0x01 //!< insert help request tag in the enveloppe message MENU SELECTION to request help information on the item selected
 //#define SAT_MENU_SELECTION_APP_MENU_REQUEST                  0x03
 
 /******************************************************************************************************************************************************/
 
-//! Browser termination cause to join in the structure of enveloppe (Browser termination)  
+//! Browser termination cause to join in the structure of enveloppe (Browser termination)
 #define SAT_BROWSER_USER_TERMINATION                                                   0x00
 #define SAT_BROWSER_ERROR_TERMINATION                                                  0x01
 
index ce9243a3216b61123bd899d7f3b628ceccc93cfc..6c7591bf3db919c51c73cecdf2b9fe0a7790ba85 100644 (file)
@@ -40,4 +40,4 @@ extern int g_svc_type;
 
 bool is_flight_mode(void);
 
-#endif 
+#endif
index 9ce1db0392b7799f3d5cde868fba77c5270abd2e..8919ec25c3f89d56c628041a0c3ae21f62696264 100644 (file)
@@ -91,12 +91,12 @@ typedef enum{
     GSM_SEC_CHANGE_LOCKING_PW,                 /* 0x03 : Change Locking Password Message */
     GSM_SEC_SIM_LANG,                                          /* 0x04 : SIM Language Message */
     GSM_SEC_RSIM_ACCESS,                                       /* 0x05 : +CRSM, Restricted SIM Access Message */
-    GSM_SEC_GSIM_ACCESS,                                       /* 0x06 : +CSIM, General SIM Access Message */             
+    GSM_SEC_GSIM_ACCESS,                                       /* 0x06 : +CSIM, General SIM Access Message */
     GSM_SEC_SIM_ICC_TYPE,                                      /* 0x07 : SIM ICC Type Message*/
     GSM_SEC_LOCK_INFO,                                 /* 0x08 : Lock Information Message*/
     GSM_SEC_ISIM_AUTH,                                 /* 0x9 : ISIM Authentication Message */
     GSM_SEC_MAX
-} gsm_sec_sub_cmd_type; 
+} gsm_sec_sub_cmd_type;
 
 typedef enum{
     GSM_CALL_OUTGOING=0x01,           /* 0x01 : Call Outgoing Message */
index b134b72a95fec5acc24705b75afc3f652ab1efb1..2c875fab2e3283754c66102e6099cc1ade603b42 100644 (file)
@@ -34,7 +34,7 @@
 *********************************************************************/
 
 /* ------------------------------------------------------------------------
-   This is the most important header file for understanding the library architecture. 
+   This is the most important header file for understanding the library architecture.
    This goes like an instance of the structure, _GSM_StateMachine.
    So, you can figure out the whole architecture by analyzing this structure members.
 
@@ -155,7 +155,7 @@ typedef struct {
     int                      ArrayIndex;
     bool PBMirroringDone;
     bool AutoRedial;
-    /* 
+    /*
        GSM_PHONEBOOK_ALL       *PBAllItem;
        GSM_PB_ONE_ITEM         *PBOneItem;
        GSM_PB_StorageInfo      *pbinfo;
index 8dec65a2597467b69a21d40405d84aeca4037cf1..9707fd1fe8aa338ff9dde578f83c124541055987 100644 (file)
@@ -45,13 +45,13 @@ int  oem_rx_net_reg_get(void)
 
 /* Update for public open */
 /*  WIRELESS */
-static const unsigned char default_identity[64] = { 
-    0x01, 0x01, 0x00, 0x10, 0x02, 0xd7, 0xa4, 0xb4, 0xc8, 0x2c, 
-    0x4e, 0xa7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
-    0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x31, 0x31, 0x31, 
+static const unsigned char default_identity[64] = {
+    0x01, 0x01, 0x00, 0x10, 0x02, 0xd7, 0xa4, 0xb4, 0xc8, 0x2c,
+    0x4e, 0xa7, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+    0x00, 0x00, 0x20, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x31, 0x31, 0x31, 0x31,
     0x31, 0x23 };
 
 int  oem_rx_net_current_plmn_get(void)
index 2265ccd178e5e809c91063003aa974363414ddbd..1e69c4203b9e6e7eab03911ad91bb66cc641069c 100644 (file)
@@ -55,7 +55,7 @@ int oem_rx_sim_sec_get_lock_info_req(void* ptr_data, int data_len)
 }
 
 int oem_rx_sim_sec_check_password_req(void* ptr_data, int data_len)
-{   
+{
     SIM_DEBUG("\n");
     return server_rx_sim_sec_check_password_req(ptr_data, data_len);
 }
index 6666e7faf27f456ce9dfeaacff58d7b636a61ba8..7c6736f75b3b2b66c05caf0295985a7d284bcbf5 100644 (file)
@@ -58,7 +58,7 @@ int oem_tx_sim_sec_get_lock_info_res(void* ptr_data, int data_len)
 }
 
 int oem_tx_sim_sec_check_password_res(void* ptr_data)
-{       
+{
     SIM_DEBUG("\n");
     return at_tx_sim_sec_check_password_res(ptr_data);
 }
index 213d5cf5638fd01606ca8b0dd5f34a708c75859c..517f9bb0c9252a71f34003cc2107dec0a453e596 100644 (file)
@@ -409,7 +409,7 @@ typedef struct _SatCmdResponse SatCmdResponse;
 struct _SatCmdResponse
 {
     char*                                              respP;                                  //!< Associated text response
-    unsigned char                              itemIdentifier;                 //!< Item identifier  
+    unsigned char                              itemIdentifier;                 //!< Item identifier
     int                                                respSize;                               //!< Associated text response size in bytes
     char                                               cmdId;                                  //!< Command Identifier
     char                                               respType;                               //!< Expected response type, see ALP_TEL_CAT_RESP_TYPE_XXX
@@ -466,7 +466,7 @@ struct _SatSetUpCall
     int                                                subAddressSize;                 //!< subaddress size in bytes
     char                                               bearerCapSize;                  //!< Bearer capability size, in bytes
 
-    unsigned long                              duration;                               //!< if the time elapsed since the first call set-up attempt has exceeded the duration request, the redial mechanism shall be terminated 
+    unsigned long                              duration;                               //!< if the time elapsed since the first call set-up attempt has exceeded the duration request, the redial mechanism shall be terminated
     char                                               condition;                              //!< Set up call commmand qualifier, see ALP_TEL_CAT_SETUP_CALL_XXX
 
     char                                               userConfIconId;                 //!< Icon id. 0 if no icon
@@ -545,7 +545,7 @@ typedef struct _SatItemList SatItemList;
 struct _SatItemList
 {
     SatItem*                           firstItemP;                     //!< The first Item
-    int                                                itemCount;                      //!< Number of items 
+    int                                                itemCount;                      //!< Number of items
     char                                               softKey;                        //!< Item can be selected by tapping on its icon
     char                                               helpInfo;                       //!< Help information is provided by the SIM
     char                                               defItemId;                      //!< Identifier of the item that should be pre-selected.
@@ -600,18 +600,18 @@ struct _SatOpenChannel
 };
 
 
-//! answer made by the phone module directly to the SIM 
+//! answer made by the phone module directly to the SIM
 typedef struct _SatMEanswer SatMEanswer;
 struct _SatMEanswer    
 {
     char                                               cmdId;                                  //!< Command Identifier
-    char                                               resCode;                                //!< Result codes applicable to command iCmdId 
+    char                                               resCode;                                //!< Result codes applicable to command iCmdId
     char                                               addInfo;                                //!< Additional information code
 
 };
 
 
-//! answer made by the SIM to the phone module CALL CONTROL or MO Short Message CONTROL command 
+//! answer made by the SIM to the phone module CALL CONTROL or MO Short Message CONTROL command
 typedef struct _SatSIManswer SatSIManswer;
 struct _SatSIManswer   
 {
@@ -620,7 +620,7 @@ struct _SatSIManswer
     char*                                      textP;                          //!< Text to display
     int                                        textSize;                       //!< The size of the encoded text
 
-    char*                                      addressP1;                      //!> if it's a call control answer adressP1= dialling number, if the address data is not present, the terminal shall assume the dialling number is not to be modified 
+    char*                                      addressP1;                      //!> if it's a call control answer adressP1= dialling number, if the address data is not present, the terminal shall assume the dialling number is not to be modified
     //!> if it's a MO short message control answer addressP1= RP_Destination_Address, if the address data object 1 is not present, then the ME shall assume the RP_Destination_Address of the Service Centre is not to be modified.
     char                                       addressSize1;           //!> address size
 
@@ -636,7 +636,7 @@ struct _SatSIManswer
     char*                              capabilityConfP1;       //!< Capability configuration parameters1
     char                                       capabilityConfSize1;//!< the capability configuration parameters1 size
 
-    char*                              capabilityConfP2;       //!< Capability configuration parameters2 
+    char*                              capabilityConfP2;       //!< Capability configuration parameters2
     char                                       capabilityConfSize2;//!< the capability configuration parameters2 size
 };
 
@@ -691,11 +691,11 @@ struct _SatSIManswer
 
 
 
-// SIMPLE-TLV data objects tags 
+// SIMPLE-TLV data objects tags
 #define SAT_COMMAND_DETAILS                                            0x01 //!> Command details tag
 #define SAT_DEVICE_IDENTITIES                                          0x02 //!> Device identity tag
 #define SAT_RESULT                                                                     0x03 //!> Result tag
-#define SAT_DURATION                                                           0x04 //!> Duration tag 
+#define SAT_DURATION                                                           0x04 //!> Duration tag
 #define SAT_ALPHA_IDENTIFIER                                           0x05 //!> Alpha identifier tag
 #define SAT_ADDRESS                                                            0x06 //!> Address tag
 #define SAT_CAPABILILITY_CONFIGURATION_PARAMETERS      0x07 //!> Capability configuration parameters tag
@@ -704,28 +704,28 @@ struct _SatSIManswer
 #define SAT_USSD_STRING                                                        0x0A //!> USSD string tag
 #define SAT_SMS_TPDU                                                           0x0B //!> SMS TPDU tag
 #define SAT_CELL_BROADCAST_PAGE                                        0x0C //!> Cell Broadcast page tag
-#define SAT_TEXT_STRING                                                        0x0D //!> Text string tag 
+#define SAT_TEXT_STRING                                                        0x0D //!> Text string tag
 #define SAT_TONE                                                                       0x0E //!> Tone tag
 #define SAT_ITEM                                                                       0x0F //!> Item tag
-#define SAT_ITEM_IDENTIFIER                                            0x10 //!> Item identifier tag 
-#define SAT_RESPONSE_LENGTH                                            0x11 //!> Response length tag 
+#define SAT_ITEM_IDENTIFIER                                            0x10 //!> Item identifier tag
+#define SAT_RESPONSE_LENGTH                                            0x11 //!> Response length tag
 #define SAT_FILE_LIST                                                          0x12 //!> File List tag
 #define SAT_LOCATION_INFORMATION                                       0x13 //!> Location Information tag
-#define SAT_IMEI                                                                       0x14 //!> IMEI tag 
-#define SAT_HELP_REQUEST                                                       0x15 //!> Help request tag 
-#define SAT_NETWORK_MEASUREMENT_RESULTS                        0x16 //!> Network Measurement Results tag 
+#define SAT_IMEI                                                                       0x14 //!> IMEI tag
+#define SAT_HELP_REQUEST                                                       0x15 //!> Help request tag
+#define SAT_NETWORK_MEASUREMENT_RESULTS                        0x16 //!> Network Measurement Results tag
 #define SAT_DEFAULT_TEXT                                                       0x17 //!> Default Text tag
 #define SAT_ITEMS_NEXT_ACTION_INDICATOR                        0x18 //!> Items Next Action Indicator tag
 #define SAT_EVENT_LIST                                                         0x19 //!> Event list tag
 #define SAT_CAUSE                                                                      0x1A //!> Cause tag
-#define SAT_LOCATION_STATUS                                            0x1B //!> Location status tag 
+#define SAT_LOCATION_STATUS                                            0x1B //!> Location status tag
 #define SAT_TRANSACTION_IDENTIFIER                                     0x1C //!> Transaction identifier tag
 #define SAT_BCCH_CHANNEL_LIST                                          0x1D //!> BCCH channel list tag
 #define SAT_ICON_IDENTIFIER                                            0x1E //!> Icon identifier tag
 #define SAT_ITEM_ICON_IDENTIFIER_LIST                          0x1F //!> Item Icon identifier list tag
 //#define SAT_CARD_READER_STATUS                                               0x20 //!> Card reader status tag
 #define SAT_CARD_ATR                                                           0x21 //!> Card ATR tag
-#define SAT_C_ADPU                                                                     0x22 //!> C-APDU tag 
+#define SAT_C_ADPU                                                                     0x22 //!> C-APDU tag
 #define SAT_R_ADPU                                                                     0x23 //!> R-APDU tag
 #define SAT_TIMER_IDENTIFIER                                           0x24 //!> Timer identifier tag
 #define SAT_TIMER_VALUE                                                        0x25 //!> Timer value tag
@@ -738,8 +738,8 @@ struct _SatSIManswer
 #define SAT_DTMF_STRING                                                        0x2C //!> DTMF string tag
 #define SAT_LANGUAGE                                                           0x2D //!> Language tag
 #define SAT_TIMING_ADVANCE                                                     0x2E //!> Timing Advance tag
-#define SAT_AID                                                                        0x2F //!> AID tag 
-#define SAT_BROWSER_IDENTITY                                           0x30 //!> Browser Identity tag 
+#define SAT_AID                                                                        0x2F //!> AID tag
+#define SAT_BROWSER_IDENTITY                                           0x30 //!> Browser Identity tag
 #define SAT_URL                                                                        0x31 //!> URL tag
 #define SAT_BEARER                                                                     0x32 //!> Bearer tag
 #define SAT_PROVISIONING_FILE_REFERENCE                        0x33 //!> Provisioning Reference File tag
@@ -752,11 +752,11 @@ struct _SatSIManswer
 //#define SAT_CARD_READER_IDENTIFIER                                   0x3A //!> Card reader identifier tag
 #define SAT_FILE_UPDATE_INFORMATION                            0x3B //!> File Update Information tag
 #define SAT_SIM_ME_INTERFACE_TRANSPORT_LEVEL           0x3C //!> UICC/terminal interface transport level tag
-// 0x3D Not used                                                           
+// 0x3D Not used
 #define SAT_OTHER_ADDRESS                                                      0x3E //!> Other address (data destination address) tag
 
 
-// 
+//
 //Access Technology tag                                             0x3F
 //Display parameters tag                                            0x40
 //Service Record tag                                                0x41
@@ -786,9 +786,9 @@ struct _SatSIManswer
 //Multimedia Message Reference tag                                                 '6A'
 //Multimedia Message Identifier tag                                            '6B'
 //Reserved for 3GPP (Multimedia Message Transfer Status tag) 1         '6C'
-//MEID tag                                                                                                                     '6D' 
-//Multimedia Message Content Identifier tag                                                    '6E' 
-//Multimedia Message Notification tag                                                          '6F' 
+//MEID tag                                                                                                                     '6D'
+//Multimedia Message Content Identifier tag                                                    '6E'
+//Multimedia Message Notification tag                                                          '6F'
 
 
 // admissible values for kGetDataDeviceIdentities param
@@ -836,8 +836,8 @@ struct _SatSIManswer
 
 //! Card EF access mode
 #define        SAT_CARD_MODE_GET_INFO                                                          0x00    //!<  Get EF information
-#define        SAT_CARD_MODE_READ_FILE                                                         0x01    //!<  Read EF body 
-#define        SAT_CARD_MODE_READ_PART                                                         0x02    //!<  Read EF part 
+#define        SAT_CARD_MODE_READ_FILE                                                         0x01    //!<  Read EF body
+#define        SAT_CARD_MODE_READ_PART                                                         0x02    //!<  Read EF part
 #define        SAT_CARD_MODE_READ_REC                                                          0x03    //!<  Read EF record
 
 //! Card EF structure
@@ -847,7 +847,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! SetUpEventList parameters: each byte in the event list shall be coded with one of the values below: 
+//! SetUpEventList parameters: each byte in the event list shall be coded with one of the values below:
 #define SAT_EVENT_USER_ACTIVITY                                                                0x04    //!< User activity
 #define SAT_EVENT_IDLE_SCREEN_AVAILABLE                                                0x05    //!< Idle screen available
 #define SAT_EVENT_LANGUAGE_SELECTION                                           0x07    //!< Language selection
@@ -901,9 +901,9 @@ struct _SatSIManswer
 
 
 /**********************************************************************************************************************************************************************
- *     
- *             Command qualifier     
- *     
+ *
+ *             Command qualifier
+ *
  **********************************************************************************************************************************************************************/
 
 //! Refresh command qualifier
@@ -917,7 +917,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! SetUpCall command qualifier 
+//! SetUpCall command qualifier
 #define SAT_SETUP_CALL_ONLY_IF_NOT_BUSY                                                                        0x00    //!< Set up call, but only if not currently busy on another call
 #define SAT_SETUP_CALL_ONLY_IF_NOT_BUSY_WITH_REDIAL                                            0x01    //!< Set up call, but only if not currently busy on another call, with redial
 #define SAT_SETUP_CALL_AND_PUT_ALL_OTHER_CALLS_ON_HOLD                                 0x02    //!< Set up call, putting all other calls (if any) on hold
@@ -939,7 +939,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! DISPLAY MULTIMEDIA MESSAGE / DISPLAY TEXT command qualifier 
+//! DISPLAY MULTIMEDIA MESSAGE / DISPLAY TEXT command qualifier
 
 // priority
 #define        SAT_NORMAL_PRIORITY                                                     0x00    //!<normal priority
@@ -958,7 +958,7 @@ struct _SatSIManswer
 #define  SAT_RESP_TYPE_UNPACKED_DIGITS_ONLY                    0x02    // unpacked digits (0 to 9, *, #, and +) only, applies to GetInkey, GetInput
 #define  SAT_RESP_TYPE_PACKED_DIGITS_ONLY                      0x03    // packed digits (0 to 9, *, #, and +) only, applies to GetInput
 #define  SAT_RESP_TYPE_UCS2_DIGITS_ONLY                                0x04    // UCS2 digits (0 to 9, *, #, and +) only, applies to GetInkey, GetInput
-#define  SAT_RESP_TYPE_UNPACKED_SMS_ALPHABET           0x05    // SMS default alphabet 8 bits data, applies to GetInkey, GetInput 
+#define  SAT_RESP_TYPE_UNPACKED_SMS_ALPHABET           0x05    // SMS default alphabet 8 bits data, applies to GetInkey, GetInput
 #define  SAT_RESP_TYPE_PACKED_SMS_ALPHABET                     0x06    // SMS default alphabet 7 bits packed, applies to GetInput
 #define  SAT_RESP_TYPE_UCS2_ALPHABET                           0x07    // 16 bits UCS2 alphabet, applies to GetInkey, GetInput
 
@@ -995,7 +995,7 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-//! LaunchBrowser command qualifier 
+//! LaunchBrowser command qualifier
 #define SAT_LAUNCH_BROWSER_IF_NOT_ALREADY_LAUNCHED                             0x00    //!< launch browser if not already launched
 #define SAT_LAUNCH_BROWSER_USE_EXISTING                                                        0x02    //!< use the existing browser (the browser shall not use the active existing secured session)
 #define SAT_LAUNCH_BROWSER_CLOSE_EXISTING_AND_LAUNCH_NEW               0x03    //!< close the existing browser session and launch new browser session
@@ -1025,10 +1025,10 @@ struct _SatSIManswer
 #define SAT_BEARER_SMS                                                                                 0x00    //!< short message
 #define SAT_BEARER_CSD                                                                                 0x01    //!< circuit switched data
 #define SAT_BEARER_USSD                                                                                        0x02    //!<
-#define SAT_BEARER_GPRS                                                                                        0x03    //!< 
+#define SAT_BEARER_GPRS                                                                                        0x03    //!<
 
 /******************************************************************************************************************************************************/
-//! Command OPEN CHANNEL parameters or response to OPEN CHANNEL: 
+//! Command OPEN CHANNEL parameters or response to OPEN CHANNEL:
 
 //type of adress in the TLV object "Other adress"
 #define        SAT_ADDRESS_IPV4                                                                                0x21
@@ -1039,7 +1039,7 @@ struct _SatSIManswer
 #define        SAT_TRANSPORT_TCP_CLIENT_MODE                                                   0x02    //!< TCP, UICC in client mode (as defined in RFC 793 [10])
 #define        SAT_TRANSPORT_TCP_SERVER_MODE                                                   0x03    //!< TCP, UICC in server mode (as defined in RFC 793 [10])
 
-//! Bearer type in the bearer description parameter 
+//! Bearer type in the bearer description parameter
 #define SAT_CSD                                                                                                        0x01    //!< circuit switched data
 #define SAT_GPRS_3G_PACKET_SERVICE                                                             0x02    //!< GPRS / 3G packet service
 #define SAT_DEFAULT_BEARER                                                                             0x03    //!< default bearer for requested transport layer
@@ -1047,7 +1047,7 @@ struct _SatSIManswer
 #define SAT_BLUETOOTH                                                                                  0x05    //!< Bluetooth
 #define SAT_IRDA                                                                                               0x06    //!< IrDA
 #define SAT_RS232                                                                                              0x07    //!< RS232
-#define SAT_PACKET_DATA_SERVICE                                                                        0x08    //!< TIA/EIA/IS-820 packet data service 
+#define SAT_PACKET_DATA_SERVICE                                                                        0x08    //!< TIA/EIA/IS-820 packet data service
 #define SAT_UTRAN                                                                                              0x09    //!< UTRAN packet service with extended parameters
 #define SAT_USB                                                                                                        0x10    //!< USB
 
@@ -1066,14 +1066,14 @@ struct _SatSIManswer
 
 /******************************************************************************************************************************************************/
 
-// Command Menu Selection parameters:  
+// Command Menu Selection parameters:
 #define SAT_MENU_SELECTION_NO_HELP_REQUESTED                   0x00 //!< do not insert help request tag in the enveloppe message MENU SELECTION
 #define SAT_MENU_SELECTION_HELP_REQUESTED                              0x01 //!< insert help request tag in the enveloppe message MENU SELECTION to request help information on the item selected
 //#define SAT_MENU_SELECTION_APP_MENU_REQUEST                  0x03 //!<  ??? specific to I250 phone driver
 
 /******************************************************************************************************************************************************/
 
-//! Browser termination cause to join in the structure of enveloppe (Browser termination)  
+//! Browser termination cause to join in the structure of enveloppe (Browser termination)
 #define SAT_BROWSER_USER_TERMINATION                                                   0x00
 #define SAT_BROWSER_ERROR_TERMINATION                                                  0x01
 
index 6119afde5eeda6ab7c47026e7bbd74fc5ab12ed4..9a78f17f094947f7597726ab5de0feb6578c56ff 100644 (file)
@@ -34,7 +34,7 @@
 #include "phoneprotocol4gsm.h"
 #include "vgsm_phone.h"
 #include "vgsm_ss.h"
-// #include <mzgsmsat.h> 
+// #include <mzgsmsat.h>
 // #include <mzgsmsound.h>
 #include "vgsm_sms.h"
 #include "vgsm_gprs.h"
@@ -236,7 +236,7 @@ static void do_restore_ei(PhoneServer* ps, TClientInfo * ci, LXT_MESSAGE * packe
            data[3] = callList->CallInfo[i].stat;
 
            memset(&data[4], 0, MAX_GSM_DIALED_DIGITS_NUMBER);
-           memcpy(&data[4], callList->CallInfo[i].number, callList->CallInfo[i].num_len);  
+           memcpy(&data[4], callList->CallInfo[i].number, callList->CallInfo[i].num_len);
            MOpacket.data = data;
            MOpacket.group  = GSM_CALL;
            MOpacket.action = GSM_CALL_MAKE_REQ;
@@ -531,7 +531,7 @@ static void do_power(PhoneServer* ps, TClientInfo * ci, LXT_MESSAGE * packet)
 
     switch (action)
     {
-       case GSM_POWER_MODEM_ON_REQ: 
+       case GSM_POWER_MODEM_ON_REQ:
            oem_rx_power_up_exec();
            break;
        case GSM_POWER_BATTERY_STATUS_NOTI:
index 7ffa0fb9b1bb4deffb0069d8c7ccc7a845b6dae6..210006ee67a0b89660b6cb18b3a6d6e30b2c5636 100644 (file)
@@ -37,7 +37,7 @@
 #include <vconf/vconf-keys.h>
 
 /* For Flight Mode */
-int g_svc_type = VCONFKEY_TELEPHONY_SVCTYPE_3G; 
+int g_svc_type = VCONFKEY_TELEPHONY_SVCTYPE_3G;
 
 bool is_flight_mode(void)
 {
@@ -46,20 +46,20 @@ bool is_flight_mode(void)
 
     if(vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &status)) {
        TRACE(MSGL_WARN, "vconf_get_bool(%s) fail\n", VCONFKEY_TELEPHONY_FLIGHT_MODE);
-       return ret; 
-    }    
+       return ret;
+    }
 
-    if(status == 1){ 
+    if(status == 1){
        ret = true;
        TRACE(MSGL_VGSM_INFO, "============ Flight mode On  ==========\n");
     }else{
        ret = false;
        TRACE(MSGL_VGSM_INFO, "============ Flight mode Off ==========\n");
-    }    
+    }
 
     TRACE(MSGL_VGSM_INFO, "============ Flight mode value: %d ==========\n", ret);
 
-    return ret; 
+    return ret;
 }
 
 
index f4565f2c0c9e5eb26fd2d5e6e1372bba1867b672..91001b72d83b83279f1a16add2b1b60efc81b0ba 100644 (file)
@@ -119,7 +119,7 @@ static void  argument_handling(int argc, char *argv[])
            else {
                TRACE(MSGL_FATAL,"\nTo set up the port  --port  [ portnumber ]\n ");
                exit(1);
-           } 
+           }
     }  
 }
 
index c3e0f9d69a3341e488ad97ed7f02dff25d5b5846..208d4d478eaecc27f962da2de8bf32b5074f8c61 100644 (file)
@@ -117,6 +117,6 @@ const char * clientName[] =
     "LXT_ID_CLIENT_EVENT_INJECTOR",            //= 0x16, // ID of event injector
     "LXT_ID_CLIENT_EVENT_MANAGER_RX",  //= 0x17, // ID of event injector
     "LXT_ID_CLIENT_EVENT_MANAGER_TX",  //= 0x18, // ID of event injector
-    "LXT_ID_CLIENT_EVENT_MANAGER",             //= 0x19, // ID of event manager 
+    "LXT_ID_CLIENT_EVENT_MANAGER",             //= 0x19, // ID of event manager
 };
 
index dbf7ff15385badccc45738bec4edb1dc9f058ddd..377fac1f2e1da21a847ca0bdc0512a5423ddf3a3 100644 (file)
@@ -531,7 +531,7 @@ int release_incoming_call(void)
            default:
                break;
        }
-    }   
+    }
 
     return releaseCnt;
 }
index 30c0427b24000756bb79f9ae7d8be79e704d13ae..5104979084cc5c745c14e257eb59c064db45a32e 100644 (file)
@@ -43,7 +43,7 @@ void init_gprs_info(void)
 {
     /* apn: "Tizen", interface: "lo", ip: 1.2.3.4, primary dns: 10.10.10.10
        , second dns: 11.11.11.11, gateway: 1.2.3.1, subnet: 255.255.255.0 */
-    GprsDbEntry entry = {"Tizen", "lo", {1, 0x001F, 
+    GprsDbEntry entry = {"Tizen", "lo", {1, 0x001F,
        {0x01, 0x02, 0x03, 0x04}, {0x0A, 0x0A, 0x0A, 0x0A},
        {0x0B, 0x0B, 0x0B, 0x0B}, {0x01, 0x02, 0x03, 0x01},
        {0xFF, 0xFF, 0xFF, 0x00}}};
@@ -64,7 +64,7 @@ void init_gprs_info(void)
     }
 
     // load database
-    vgsm_gprs_database_restore(); 
+    vgsm_gprs_database_restore();
 
     len = sizeof(int) + (g_gprs_conflist.num * (255 + 10 + 23));
 
index a99efb3ac9d1b5c4b2c19afee05c229cf07b8ba4..70f2b49af1cf744d2e0ed6ed083dcb002ba399aa 100644 (file)
@@ -86,7 +86,7 @@ void init_plmn_list(void)
     char *buf;
     int i;
 
-    // load 
+    // load
     vgsm_network_database_restore();
 
     VGSM_DEBUG("num of current saved PLMN: %i \n", g_plmn_list.num_record);
@@ -118,7 +118,7 @@ void init_plmn_list(void)
     }
 
     // send noti to evt injector
-    if ((buf = malloc(1 + g_plmn_list.num_record * 8)) == NULL) { 
+    if ((buf = malloc(1 + g_plmn_list.num_record * 8)) == NULL) {
        log_msg(MSGL_VGSM_ERR,"init_plmn_list: memory alloc error\n");
        return;
     }
index 12bf63b1e9bba7cd5f303a436418a594181e9bcc..7ed68544445433d3560fc426276a3cddf1af9c51 100644 (file)
@@ -245,7 +245,7 @@ int server_rx_call_line_id_get(void)
 }
 
 int server_rx_call_release_incoming(void)
-{       
+{
     TRACE(MSGL_VGSM_INFO, "\n");
     int releaseCnt = 0;
 
index 2c448967b5c1a24efc19b90250b4e681aa811593..02994554d3f7683b455779fbf67bb47f9a1dc7f3 100644 (file)
@@ -94,7 +94,7 @@ int server_rx_gprs_SetPDPContext(void *ptr_data, int data_len )
        if(ret)
            g_pdpcontext.h_comp = atoi(ret);
 
-       log_msg(MSGL_VGSM_INFO,"MODE[%x] CID[%x] PDP_TYPE[%x] APN[%s] \n", 
+       log_msg(MSGL_VGSM_INFO,"MODE[%x] CID[%x] PDP_TYPE[%x] APN[%s] \n",
                g_pdpcontext.mode, g_pdpcontext.cid, g_pdpcontext.pdp_type, g_pdpcontext.apn);
        log_msg(MSGL_VGSM_INFO,"PDP_ADDRESS[%s] D_COMP[%x] H_COMP[%x] \n",
                g_pdpcontext.pdp_addr, g_pdpcontext.d_comp, g_pdpcontext.h_comp);
index e6174d2ea25774c64e467c64ccde72d46db63042..afb2d9d3660f97f4365be214bcb5e49878b045b7 100644 (file)
@@ -83,7 +83,7 @@ int server_rx_net_plmn_list_get(void)
        data[n++] =0x11; /* LAC  2bytes*/
        memset(tmpbuf, '\0', sizeof(tmpbuf));
        VGSM_DEBUG("plmn: %s\n", plmn_data);
-       sprintf(tmpbuf, "(%d,\"%c%c%c%c%c%c\",\"%c%c%c%c%c%c\",\"%c%c%c%c%c%c\")", plmn_list->precord[i].status, 
+       sprintf(tmpbuf, "(%d,\"%c%c%c%c%c%c\",\"%c%c%c%c%c%c\",\"%c%c%c%c%c%c\")", plmn_list->precord[i].status,
                plmn_data[0], plmn_data[1], plmn_data[2], plmn_data[3], plmn_data[4], plmn_data[5],
                plmn_data[0], plmn_data[1], plmn_data[2], plmn_data[3], plmn_data[4], plmn_data[5],
                plmn_data[0], plmn_data[1], plmn_data[2], plmn_data[3], plmn_data[4], plmn_data[5]);
@@ -189,7 +189,7 @@ int server_rx_net_current_plmn_get(void)
 
     find_plmn(plmn, act);
 #endif
-    sprintf(sndbuf, "%s%d,%d,%s,%d%s", COPS, data[0], GSM_NET_PLMN_FORMAT_NUMERIC, default_plmn, data[2], CRLF); 
+    sprintf(sndbuf, "%s%d,%d,%s,%d%s", COPS, data[0], GSM_NET_PLMN_FORMAT_NUMERIC, default_plmn, data[2], CRLF);
     return oem_tx_net_current_plmn_resp(sndbuf, strlen(sndbuf));
 }
 
index 62593f0236873d0f3864a73f9d731d25c5086aa1..a97b63612d65b245392eac5fe1582298d1875c55 100644 (file)
@@ -53,7 +53,7 @@ int server_rx_sms_DR(void *ptr_data, int data_len)
 }
 
 static int sms_msg_hook_modify(void * data, int len)
-{       
+{
     int position;
     unsigned char *rawdata = (unsigned char *)data;
     TPDU_SMS_SUBMIT tpdu_submit;
index 6103f08b0cb862afd36412113f622be5fe9c873b..bf310856abab3c61a4f4d2873778b939b28a16aa 100644 (file)
@@ -601,11 +601,11 @@ int server_rx_ss_manage_call_set(char* ptr_data, int data_len)
     }
     else if(signal == AT_GSM_SS_CM_1_SEND)    // release all active call and the other (held or waiting) call
     {
-       rtn = server_rx_call_release_all_active(); 
+       rtn = server_rx_call_release_all_active();
     }
     else if(signal == AT_GSM_SS_CM_2_SEND)    // active call on hold and held or waiting call on active
     {
-       VGSM_DEBUG("g_ss_hold_response_error: err =%x \n", g_ss_hold_response_error);   
+       VGSM_DEBUG("g_ss_hold_response_error: err =%x \n", g_ss_hold_response_error);
        //at_gen_resp_send( g_ss_hold_response_error);
        if ( g_ss_hold_response_error == 0x8000 )
            rtn = server_rx_call_swap();
index 45baf90c66ed918bac83e8a4dcef43b38174765d..e939f7203bf481213e1992d512cb561592d722bf 100644 (file)
@@ -165,9 +165,9 @@ int server_tx_call_status(void) // it means call state.
 
     if(strcmp(callList->CallInfo[get_call_id()].number, ""))
     {
-       sprintf((char*)pdata, "%d,%d,%d,%d,%d,%s,%d", get_call_id() + 1, change_dir_for_at(callList->CallInfo[get_call_id()].dir), 
-               at_stat, AT_CALL_MODE_VOICE, AT_CALL_MPTY_FALSE, 
-               callList->CallInfo[get_call_id()].number,callList->CallInfo[get_call_id()].num_type); 
+       sprintf((char*)pdata, "%d,%d,%d,%d,%d,%s,%d", get_call_id() + 1, change_dir_for_at(callList->CallInfo[get_call_id()].dir),
+               at_stat, AT_CALL_MODE_VOICE, AT_CALL_MPTY_FALSE,
+               callList->CallInfo[get_call_id()].number,callList->CallInfo[get_call_id()].num_type);
     }
     else
     {
@@ -211,7 +211,7 @@ int server_tx_call_list_noti(void)
        memset( data, 0, len * 2 );
        sprintf((char*)data, "%d,%d,%d,%d,%d,%s,%d%s", callList->CallInfo[i].idx + 1,
                change_dir_for_at(callList->CallInfo[i].dir),
-               change_stat_for_at(callList->CallInfo[i].stat), AT_CALL_MODE_VOICE, callList->CallInfo[i].mpty, 
+               change_stat_for_at(callList->CallInfo[i].stat), AT_CALL_MODE_VOICE, callList->CallInfo[i].mpty,
                callList->CallInfo[i].number, callList->CallInfo[i].num_type, CRLF);
        log_msg(MSGL_VGSM_INFO, "%s", data);
        ret = oem_tx_call_status_noti(data, strlen((char*)data));
@@ -309,10 +309,10 @@ int server_tx_call_list_resp(void)
 
        assert(valid_call_type(callList->CallInfo[i].call_type));
        memset( data, 0, len * 2);
-       sprintf((char*)data, "%s%d,%d,%d,%d,%d,%s,%d%s", CLCC,callList->CallInfo[i].idx + 1, 
+       sprintf((char*)data, "%s%d,%d,%d,%d,%d,%s,%d%s", CLCC,callList->CallInfo[i].idx + 1,
                change_dir_for_at(callList->CallInfo[i].dir),
-               change_stat_for_at(callList->CallInfo[i].stat), 
-               AT_CALL_MODE_VOICE, callList->CallInfo[i].mpty, 
+               change_stat_for_at(callList->CallInfo[i].stat),
+               AT_CALL_MODE_VOICE, callList->CallInfo[i].mpty,
                callList->CallInfo[i].number, callList->CallInfo[i].num_type, CRLF);
        log_msg(MSGL_VGSM_INFO, "%s", data);    
        ret = oem_tx_call_list_resp(data, strlen((char*)data));
index fd694e0889ffa4b2c451bc175d6e15f34d18a8e4..b123192cd65b994c5f5495d50f4e66671fea88a5 100644 (file)
@@ -86,7 +86,7 @@ int server_tx_net_reg_noti(LXT_MESSAGE const* packet)
 
     memset( data, 0, sizeof(unsigned char)*len );
 
-    if (packet && packet->data) 
+    if (packet && packet->data)
     {
        VGSM_DEBUG("\n");
        unsigned char *ptr = (unsigned char *)packet->data;
index 42fa0929ffa735ae1994d1fbde9b00e8af858a0c..f517b87bcdb0ebf08c5e68d052df952decfd8953 100644 (file)
@@ -307,7 +307,7 @@ int server_tx_sim_sec_pin_status_noti(STATE_TYPE before_state, STATE_TYPE curren
                             */
                            pdata[0]    =       GSM_SEC_LOCK_TYPE_READY;
                            pdata[1]    =       GSM_SEC_LOCK_KEY_UNLOCKED;
-#if 0 //20110714 tmp 
+#if 0 //20110714 tmp
                            oem_tx_sim_sec_pin_status_noti(pdata, data_size);
 
                            sleep(3);
index 3299572a48fdebf6d20d9056dc4c1cffb33cc4a3..ee3e56861aabb44681bd964121c0affb4f1b8269 100644 (file)
@@ -47,7 +47,7 @@ void  server_tx_sms_deviceReady(LXT_MESSAGE const* packet)
 }
 
 static int sms_msg_hook_modify(void * data, int len)
-{    
+{
     int position;
     unsigned char *rawdata = (unsigned char *)data;
     TPDU_SMS_SUBMIT tpdu_submit;
index c276a2170c5a675a8ab5f0ffbdf2ddb356ba3bd7..41b004ab6b74ff44a0b188af106ae380b16684cd 100644 (file)
@@ -39,7 +39,7 @@ GSM_Error GSM_InitConnection(GSM_StateMachine *s, int ReplyNum)
 {
     GSM_Error   error;
 
-    s->ReplyNum           = ReplyNum;          
+    s->ReplyNum           = ReplyNum;
     s->Phone.Data.CMECode              = 0;
     s->Phone.Data.CMSCode              = 0;
     s->Phone.Data.PhonePower   = false;
index d26cd19f6c17e5e1dac7c91a6e808691e7467541..9f1010f1bf1fa0613dea88d7dc2913481ed78d61 100644 (file)
@@ -349,7 +349,7 @@ static int dpram_poweron(GSM_StateMachine * s, int first_boot)
     }
     else{
 #ifdef __arm__
-       if (!_IsFlightMode() || first_boot) { 
+       if (!_IsFlightMode() || first_boot) {
            GSM_Device_DPRAMData        *d = &s->Device.Data.DPRAM;
            GSM_Phone_Data                      *Data = &s->Phone.Data;
            int rc = -1;
@@ -432,14 +432,14 @@ static int dpram_write(GSM_StateMachine *s, void *buf, size_t nbytes)
            if (actual != nbytes)
                GSM_OSErrorInfo(s, "dpram_write");
            return actual;
-       }               
+       }
 
        actual  += ret;
        p       += ret;
     } while (actual < nbytes);
 
     return actual;
-}   
+}
 
 static bool dpram_powerstatus(GSM_StateMachine *s)
 {