1 /***************************************************************************
2  *   copyright           : (C) 2002 by Hendrik Sattler                     *
3  *   mail                : post@hendrik-sattler.de                         *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) any later version.                                   *
9  *                                                                         *
10  ***************************************************************************/
11 
12 #include <atcommand.h>
13 #include <helper.h>
14 
at_get_vendor(void)15 char* at_get_vendor (void) {
16   static char* vendor = NULL;
17 
18   if (vendor == NULL) {
19     at_command_send(AT_GEN_VENDOR,NULL);
20     vendor = at_get_value(AT_GEN_VENDOR);
21   }
22   return str_dup(vendor);
23 }
24 
at_get_model(void)25 char* at_get_model (void) {
26   static char* model = NULL;
27 
28   if (model == NULL) {
29     at_command_send(AT_GEN_MODEL,NULL);
30     model = at_get_value(AT_GEN_MODEL);
31   }
32   return str_dup(model);
33 }
34