forked from vmware/tdnf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I140537d46704714ae0f5bbd06fe72b8e0fac2328
- Loading branch information
Priyesh Padmavilasom
committed
Nov 4, 2016
1 parent
09a7539
commit e255292
Showing
17 changed files
with
327 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,8 @@ ltmain.sh | |
libtool | ||
ar-lib | ||
|
||
/common/.deps | ||
/common/.libs | ||
/client/.deps | ||
/client/.libs | ||
/tools/cli/.deps | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
ACLOCAL_AMFLAGS = -I m4 | ||
|
||
conf_DATA = tdnf.conf | ||
include_HEADERS = include/tdnfclient.h include/tdnferror.h include/tdnftypes.h | ||
pkginclude_HEADERS = include/tdnfclient.h include/tdnferror.h include/tdnftypes.h | ||
|
||
SUBDIRS = \ | ||
common \ | ||
client \ | ||
tests \ | ||
tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,3 +65,4 @@ | |
#include "defines.h" | ||
#include "structs.h" | ||
#include "prototypes.h" | ||
#include "../common/prototypes.h" |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
noinst_LTLIBRARIES = libcommon.la | ||
|
||
libcommon_la_SOURCES = \ | ||
memory.c \ | ||
strings.c | ||
|
||
libcommon_la_CPPFLAGS = \ | ||
-I$(top_srcdir)/include | ||
|
||
libcommon_la_LDFLAGS = \ | ||
-static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* | ||
* Copyright (C) 2015 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the GNU Lesser General Public License v2.1 (the "License"); | ||
* you may not use this file except in compliance with the License. The terms | ||
* of the License are located in the COPYING file of this distribution. | ||
*/ | ||
|
||
/* | ||
* Header : defines.h | ||
* | ||
* Abstract : | ||
* | ||
* commonlib | ||
* | ||
* common library | ||
* | ||
* Authors : Priyesh Padmavilasom (ppadmavilasom@vmware.com) | ||
*/ | ||
|
||
#pragma once | ||
|
||
#define IsNullOrEmptyString(str) (!(str) || !(*str)) | ||
|
||
#define BAIL_ON_TDNF_ERROR(dwError) \ | ||
do { \ | ||
if (dwError) \ | ||
{ \ | ||
goto error; \ | ||
} \ | ||
} while(0) | ||
|
||
#define BAIL_ON_TDNF_SYSTEM_ERROR(dwError) \ | ||
do { \ | ||
if (dwError) \ | ||
{ \ | ||
dwError = ERROR_TDNF_SYSTEM_BASE + dwError; \ | ||
goto error; \ | ||
} \ | ||
} while(0) | ||
|
||
|
||
#define TDNF_SAFE_FREE_MEMORY(pMemory) \ | ||
do { \ | ||
if (pMemory) { \ | ||
TDNFFreeMemory(pMemory); \ | ||
} \ | ||
} while(0) | ||
|
||
#define TDNF_SAFE_FREE_STRINGARRAY(ppArray) \ | ||
do { \ | ||
if (ppArray) { \ | ||
TDNFFreeStringArray(ppArray); \ | ||
} \ | ||
} while(0) | ||
|
||
#define TDNF_DEFAULT_MAX_STRING_LEN 16384000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (C) 2015 VMware, Inc. All Rights Reserved. | ||
* | ||
* Licensed under the GNU Lesser General Public License v2.1 (the "License"); | ||
* you may not use this file except in compliance with the License. The terms | ||
* of the License are located in the COPYING file of this distribution. | ||
*/ | ||
|
||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <stdint.h> | ||
#include <stdarg.h> | ||
#include <string.h> | ||
#include <errno.h> | ||
|
||
#include <tdnferror.h> | ||
|
||
#include "defines.h" | ||
#include "prototypes.h" |
Oops, something went wrong.