Skip to content

Commit

Permalink
libcacard: stop including qemu-common.h
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and Michael Tokarev committed Apr 30, 2015
1 parent d3e4abd commit 28507a4
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 7 deletions.
5 changes: 4 additions & 1 deletion libcacard/cac.c
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion libcacard/card_7816.c
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion libcacard/event.c
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion libcacard/vcard.c
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion libcacard/vcard_emul_nss.c
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion libcacard/vreader.c
Expand Up @@ -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"
Expand Down
8 changes: 7 additions & 1 deletion libcacard/vscclient.c
Expand Up @@ -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"

Expand Down

0 comments on commit 28507a4

Please sign in to comment.