diff options
author | Dan Williams <dcbw@redhat.com> | 2013-02-08 08:00:23 -0600 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-04-18 10:23:50 -0500 |
commit | 0c683699f89d86253e9a8a4399afee12a7057d1c (patch) | |
tree | 2110ecc0b7c899ffbba0401aa43df45453cb568d | |
parent | 65aa54bd9220bef5647c93f66b41bf7c7d58cf23 (diff) |
qcdm: add private shared commands header
We'll use it for log items too.
-rw-r--r-- | libqcdm/src/Makefile.am | 1 | ||||
-rw-r--r-- | libqcdm/src/commands-private.h | 33 | ||||
-rw-r--r-- | libqcdm/src/commands.c | 5 |
3 files changed, 37 insertions, 2 deletions
diff --git a/libqcdm/src/Makefile.am b/libqcdm/src/Makefile.am index 32f0b29b..cece4800 100644 --- a/libqcdm/src/Makefile.am +++ b/libqcdm/src/Makefile.am @@ -12,6 +12,7 @@ libqcdm_la_SOURCES = \ com.h \ commands.c \ commands.h \ + commands-private.h \ errors.c \ errors.h \ result.c \ diff --git a/libqcdm/src/commands-private.h b/libqcdm/src/commands-private.h new file mode 100644 index 00000000..6bd919d0 --- /dev/null +++ b/libqcdm/src/commands-private.h @@ -0,0 +1,33 @@ +/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * Copyright (C) 2010 - 2013 Red Hat, Inc. + * + * This program is free software: you can redistribute it and/or + * modify it under the terms of version 2 of the GNU General Public + * License as published by the Free Software Foundation + * + * 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, see <http://www.gnu.org/licenses/>. + */ + +#ifndef LIBQCDM_COMMANDS_PRIVATE_H +#define LIBQCDM_COMMANDS_PRIVATE_H + +#include "errors.h" +#include "utils.h" +#include "commands.h" + +/**********************************************************************/ + +u_int8_t cdma_prev_to_qcdm (u_int8_t cdma); + +u_int8_t cdma_band_class_to_qcdm (u_int8_t cdma); + +/**********************************************************************/ + +#endif /* LIBQCDM_COMMANDS_PRIVATE_H */ diff --git a/libqcdm/src/commands.c b/libqcdm/src/commands.c index fe1ca576..6fdca4df 100644 --- a/libqcdm/src/commands.c +++ b/libqcdm/src/commands.c @@ -20,6 +20,7 @@ #include <endian.h> #include "commands.h" +#include "commands-private.h" #include "errors.h" #include "dm-commands.h" #include "dm-nv-items.h" @@ -29,7 +30,7 @@ /**********************************************************************/ -static u_int8_t +u_int8_t cdma_prev_to_qcdm (u_int8_t cdma) { switch (cdma) { @@ -53,7 +54,7 @@ cdma_prev_to_qcdm (u_int8_t cdma) return QCDM_CDMA_PREV_UNKNOWN; } -static u_int8_t +u_int8_t cdma_band_class_to_qcdm (u_int8_t cdma) { switch (cdma) { |