From: Paolo Bonzini <pbonzini@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-trivial] [PATCH v2] libcacard: stop including qemu-common.h
Date: Mon, 27 Apr 2015 15:29:20 +0200 [thread overview]
Message-ID: <553E39B0.7070100@redhat.com> (raw)
In-Reply-To: <1430141220-20123-1-git-send-email-mjt@msgid.tls.msk.ru>
On 27/04/2015 15:27, Michael Tokarev wrote:
> From: Paolo Bonzini <pbonzini@redhat.com>
>
> This is a small step towards making libcacard standalone.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> ---
> v2: update vscclient.c too, use unistd.h on !WIN32 and getopt.h on *nix
Thanks very much Michael. The vscclient.c parts look good, you may want
to add your changes before your S-o-b line.
Paolo
>
> libcacard/cac.c | 5 ++++-
> libcacard/card_7816.c | 4 +++-
> libcacard/event.c | 2 +-
> libcacard/vcard.c | 4 +++-
> libcacard/vcard_emul_nss.c | 2 +-
> libcacard/vreader.c | 4 +++-
> libcacard/vscclient.c | 8 +++++++-
> 7 files changed, 22 insertions(+), 7 deletions(-)
>
> diff --git a/libcacard/cac.c b/libcacard/cac.c
> index f38fdce..bc84534 100644
> --- a/libcacard/cac.c
> +++ b/libcacard/cac.c
> @@ -5,7 +5,10 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
> +#include <stdbool.h>
>
> #include "cac.h"
> #include "vcard.h"
> diff --git a/libcacard/card_7816.c b/libcacard/card_7816.c
> index 814fa16..22fd334 100644
> --- a/libcacard/card_7816.c
> +++ b/libcacard/card_7816.c
> @@ -5,7 +5,9 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
>
> #include "vcard.h"
> #include "vcard_emul.h"
> diff --git a/libcacard/event.c b/libcacard/event.c
> index 4c551e4..63f4057 100644
> --- a/libcacard/event.c
> +++ b/libcacard/event.c
> @@ -5,7 +5,7 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
>
> #include "vcard.h"
> #include "vreader.h"
> diff --git a/libcacard/vcard.c b/libcacard/vcard.c
> index d140a8e..1a87208 100644
> --- a/libcacard/vcard.c
> +++ b/libcacard/vcard.c
> @@ -5,7 +5,9 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
>
> #include "vcard.h"
> #include "vcard_emul.h"
> diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c
> index 950edee..6955f69 100644
> --- a/libcacard/vcard_emul_nss.c
> +++ b/libcacard/vcard_emul_nss.c
> @@ -25,7 +25,7 @@
> #include <prthread.h>
> #include <secerr.h>
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
>
> #include "vcard.h"
> #include "card_7816t.h"
> diff --git a/libcacard/vreader.c b/libcacard/vreader.c
> index 0315dd8..9725f46 100644
> --- a/libcacard/vreader.c
> +++ b/libcacard/vreader.c
> @@ -10,7 +10,9 @@
> #endif
> #define G_LOG_DOMAIN "libcacard"
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
>
> #include "vcard.h"
> #include "vcard_emul.h"
> diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c
> index fa6041d..0652684 100644
> --- a/libcacard/vscclient.c
> +++ b/libcacard/vscclient.c
> @@ -10,14 +10,20 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> #ifndef _WIN32
> #include <sys/socket.h>
> #include <netinet/in.h>
> #include <netdb.h>
> +#include <unistd.h>
> #define closesocket(x) close(x)
> +#else
> +#include <getopt.h>
> #endif
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
>
> #include "vscard_common.h"
>
>
WARNING: multiple messages have this Message-ID (diff)
From: Paolo Bonzini <pbonzini@redhat.com>
To: Michael Tokarev <mjt@tls.msk.ru>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] libcacard: stop including qemu-common.h
Date: Mon, 27 Apr 2015 15:29:20 +0200 [thread overview]
Message-ID: <553E39B0.7070100@redhat.com> (raw)
In-Reply-To: <1430141220-20123-1-git-send-email-mjt@msgid.tls.msk.ru>
On 27/04/2015 15:27, Michael Tokarev wrote:
> From: Paolo Bonzini <pbonzini@redhat.com>
>
> This is a small step towards making libcacard standalone.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
> ---
> v2: update vscclient.c too, use unistd.h on !WIN32 and getopt.h on *nix
Thanks very much Michael. The vscclient.c parts look good, you may want
to add your changes before your S-o-b line.
Paolo
>
> libcacard/cac.c | 5 ++++-
> libcacard/card_7816.c | 4 +++-
> libcacard/event.c | 2 +-
> libcacard/vcard.c | 4 +++-
> libcacard/vcard_emul_nss.c | 2 +-
> libcacard/vreader.c | 4 +++-
> libcacard/vscclient.c | 8 +++++++-
> 7 files changed, 22 insertions(+), 7 deletions(-)
>
> diff --git a/libcacard/cac.c b/libcacard/cac.c
> index f38fdce..bc84534 100644
> --- a/libcacard/cac.c
> +++ b/libcacard/cac.c
> @@ -5,7 +5,10 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
> +#include <stdbool.h>
>
> #include "cac.h"
> #include "vcard.h"
> diff --git a/libcacard/card_7816.c b/libcacard/card_7816.c
> index 814fa16..22fd334 100644
> --- a/libcacard/card_7816.c
> +++ b/libcacard/card_7816.c
> @@ -5,7 +5,9 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
>
> #include "vcard.h"
> #include "vcard_emul.h"
> diff --git a/libcacard/event.c b/libcacard/event.c
> index 4c551e4..63f4057 100644
> --- a/libcacard/event.c
> +++ b/libcacard/event.c
> @@ -5,7 +5,7 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
>
> #include "vcard.h"
> #include "vreader.h"
> diff --git a/libcacard/vcard.c b/libcacard/vcard.c
> index d140a8e..1a87208 100644
> --- a/libcacard/vcard.c
> +++ b/libcacard/vcard.c
> @@ -5,7 +5,9 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
>
> #include "vcard.h"
> #include "vcard_emul.h"
> diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c
> index 950edee..6955f69 100644
> --- a/libcacard/vcard_emul_nss.c
> +++ b/libcacard/vcard_emul_nss.c
> @@ -25,7 +25,7 @@
> #include <prthread.h>
> #include <secerr.h>
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
>
> #include "vcard.h"
> #include "card_7816t.h"
> diff --git a/libcacard/vreader.c b/libcacard/vreader.c
> index 0315dd8..9725f46 100644
> --- a/libcacard/vreader.c
> +++ b/libcacard/vreader.c
> @@ -10,7 +10,9 @@
> #endif
> #define G_LOG_DOMAIN "libcacard"
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
> +
> +#include <string.h>
>
> #include "vcard.h"
> #include "vcard_emul.h"
> diff --git a/libcacard/vscclient.c b/libcacard/vscclient.c
> index fa6041d..0652684 100644
> --- a/libcacard/vscclient.c
> +++ b/libcacard/vscclient.c
> @@ -10,14 +10,20 @@
> * See the COPYING.LIB file in the top-level directory.
> */
>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> #ifndef _WIN32
> #include <sys/socket.h>
> #include <netinet/in.h>
> #include <netdb.h>
> +#include <unistd.h>
> #define closesocket(x) close(x)
> +#else
> +#include <getopt.h>
> #endif
>
> -#include "qemu-common.h"
> +#include "glib-compat.h"
>
> #include "vscard_common.h"
>
>
next prev parent reply other threads:[~2015-04-27 13:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 13:27 [Qemu-trivial] [PATCH v2] libcacard: stop including qemu-common.h Michael Tokarev
2015-04-27 13:27 ` [Qemu-devel] " Michael Tokarev
2015-04-27 13:29 ` Paolo Bonzini [this message]
2015-04-27 13:29 ` Paolo Bonzini
2015-05-06 9:23 ` [Qemu-trivial] " Laurent Desnogues
2015-05-06 9:23 ` Laurent Desnogues
2015-05-06 10:05 ` [Qemu-trivial] " Michael Tokarev
2015-05-06 10:05 ` Michael Tokarev
2015-05-06 12:01 ` [Qemu-trivial] " Laurent Desnogues
2015-05-06 12:01 ` Laurent Desnogues
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=553E39B0.7070100@redhat.com \
--to=pbonzini@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.