misc: Put git-version-gen into the tarball
[osmocom-bb.git] / tests / smscb / smscb_test.c
1 /*
2  * (C) 2010 Holger Hans Peter Freyther
3  * All Rights Reserved
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  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  *
19  */
20
21 #include <osmocom/gsm/protocol/gsm_03_41.h>
22
23 #include <stdio.h>
24
25 static uint8_t smscb_msg[] = { 0x40, 0x10, 0x05, 0x0d, 0x01, 0x11 };
26
27 int main(int argc, char **argv)
28 {
29         struct gsm341_ms_message *msg;
30
31         msg = (struct gsm341_ms_message *) smscb_msg;
32         printf("(srl) GS: %d MSG_CODE: %d UPDATE: %d\n",
33                 msg->serial.gs, GSM341_MSG_CODE(msg), msg->serial.update);
34         printf("(msg) msg_id: %d\n", htons(msg->msg_id));
35         printf("(dcs) group: %d language: %d\n",
36                 msg->dcs.language, msg->dcs.group);
37         printf("(pge) page total: %d current: %d\n",
38                 msg->page.total, msg->page.current);
39
40         return 0;
41 }