gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

support for --config in smsd


From: alonso acuña
Subject: support for --config in smsd
Date: Thu, 31 May 2012 15:52:23 -0600

Hello these are some changes that I made in order to be able to pass a
--config argument to smsd which apparently was missing.

smsd.c line 164:
             "            -v, --version\n"
+             "            -w, --config config file\n"
             "            -h, --help\n"), p);

line 236
      {"phone", 1, 0, 't'},
+      {"config", 1, 0, 'w'},
      {"version", 0, 0, 'v'},

line 247 change to
  c = getopt_long (argc, argv, "u:p:d:c:s:e:m:l:f:t:w:vi:S:b:0h",
longOptions, &optionIndex);

near line 300 add:
     case 'w':
        if (smsdConfig.configFile)
          g_free (smsdConfig.configFile);
        smsdConfig.configFile = g_strdup (optarg);
        break;

smsd.h line 60 add:
  gchar *configFile;

lowlevel.c line 108 change to
 error = gn_lib_phoneprofile_load_from_file(smsdConfig.configFile, iname, &sm);


Do you think this can be added to your next release?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]