diff options
author | ShyamsundarR <srangana@redhat.com> | 2018-11-29 14:08:06 -0500 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-12-05 21:47:04 +0000 |
commit | 20ef211cfa5b5fcc437484a879fdc5d4c66bbaf5 (patch) | |
tree | f2e6af0f2ba7768e32cbf712149c0ffd5314f811 /cli | |
parent | ad446dabb88439ba83e2092021b09894351e8e71 (diff) |
libglusterfs: Move devel headers under glusterfs directory
libglusterfs devel package headers are referenced in code using
include semantics for a program, this while it works can be better
especially when dealing with out of tree xlator builds or in
general out of tree devel package usage.
Towards this, the following changes are done,
- moved all devel headers under a glusterfs directory
- Included these headers using system header notation <> in all
code outside of libglusterfs
- Included these headers using own program notation "" within
libglusterfs
This change although big, is just moving around the headers and
making it correct when including these headers from other sources.
This helps us correctly include libglusterfs includes without
namespace conflicts.
Change-Id: Id2a98854e671a7ee5d73be44da5ba1a74252423b
Updates: bz#1193929
Signed-off-by: ShyamsundarR <srangana@redhat.com>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/src/cli-cmd-global.c | 6 | ||||
-rw-r--r-- | cli/src/cli-cmd-parser.c | 4 | ||||
-rw-r--r-- | cli/src/cli-cmd-peer.c | 2 | ||||
-rw-r--r-- | cli/src/cli-cmd-volume.c | 8 | ||||
-rw-r--r-- | cli/src/cli-cmd.h | 2 | ||||
-rw-r--r-- | cli/src/cli-mem-types.h | 2 | ||||
-rw-r--r-- | cli/src/cli-quotad-client.h | 4 | ||||
-rw-r--r-- | cli/src/cli-rl.c | 2 | ||||
-rw-r--r-- | cli/src/cli-rpc-ops.c | 16 | ||||
-rw-r--r-- | cli/src/cli-xml-output.c | 8 | ||||
-rw-r--r-- | cli/src/cli.c | 26 | ||||
-rw-r--r-- | cli/src/cli.h | 6 |
12 files changed, 43 insertions, 43 deletions
diff --git a/cli/src/cli-cmd-global.c b/cli/src/cli-cmd-global.c index e1bedf13542..d0729ac1f0a 100644 --- a/cli/src/cli-cmd-global.c +++ b/cli/src/cli-cmd-global.c @@ -23,9 +23,9 @@ #include "cli-cmd.h" #include "cli-mem-types.h" #include "cli1-xdr.h" -#include "run.h" -#include "syscall.h" -#include "common-utils.h" +#include <glusterfs/run.h> +#include <glusterfs/syscall.h> +#include <glusterfs/common-utils.h> extern rpc_clnt_prog_t *cli_rpc_prog; diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 94deb9125a2..b29b3e9bd29 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -18,8 +18,8 @@ #include "cli.h" #include "cli-cmd.h" #include "cli-mem-types.h" -#include "dict.h" -#include "list.h" +#include <glusterfs/dict.h> +#include <glusterfs/list.h> #include "protocol-common.h" #include "cli1-xdr.h" diff --git a/cli/src/cli-cmd-peer.c b/cli/src/cli-cmd-peer.c index ccbd2edde20..6c7a7ea2794 100644 --- a/cli/src/cli-cmd-peer.c +++ b/cli/src/cli-cmd-peer.c @@ -18,7 +18,7 @@ #include "cli-mem-types.h" #include "cli1-xdr.h" #include "protocol-common.h" -#include "events.h" +#include <glusterfs/events.h> extern struct rpc_clnt *global_rpc; diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index ea4484eb3f7..c14faabc4f9 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -23,10 +23,10 @@ #include "cli-cmd.h" #include "cli-mem-types.h" #include "cli1-xdr.h" -#include "run.h" -#include "syscall.h" -#include "common-utils.h" -#include "events.h" +#include <glusterfs/run.h> +#include <glusterfs/syscall.h> +#include <glusterfs/common-utils.h> +#include <glusterfs/events.h> extern struct rpc_clnt *global_rpc; extern struct rpc_clnt *global_quotad_rpc; diff --git a/cli/src/cli-cmd.h b/cli/src/cli-cmd.h index 70c864eae30..b6bc5659936 100644 --- a/cli/src/cli-cmd.h +++ b/cli/src/cli-cmd.h @@ -13,7 +13,7 @@ #include <netdb.h> #include "cli.h" -#include "list.h" +#include <glusterfs/list.h> #define GLUSTER_SHARED_STORAGE "gluster_shared_storage" diff --git a/cli/src/cli-mem-types.h b/cli/src/cli-mem-types.h index a762b685f0a..b42b4dd86c2 100644 --- a/cli/src/cli-mem-types.h +++ b/cli/src/cli-mem-types.h @@ -10,7 +10,7 @@ #ifndef __CLI_MEM_TYPES_H__ #define __CLI_MEM_TYPES_H__ -#include "mem-types.h" +#include <glusterfs/mem-types.h> #define CLI_MEM_TYPE_START (gf_common_mt_end + 1) diff --git a/cli/src/cli-quotad-client.h b/cli/src/cli-quotad-client.h index 57a998c913c..71a44e5916b 100644 --- a/cli/src/cli-quotad-client.h +++ b/cli/src/cli-quotad-client.h @@ -8,8 +8,8 @@ cases as published by the Free Software Foundation. */ #include "cli.h" -#include "compat-errno.h" -#include "compat.h" +#include <glusterfs/compat-errno.h> +#include <glusterfs/compat.h> #include "cli-cmd.h" #include "cli1-xdr.h" #include "xdr-generic.h" diff --git a/cli/src/cli-rl.c b/cli/src/cli-rl.c index 38aa6f4b7ae..cc327c0b3f5 100644 --- a/cli/src/cli-rl.c +++ b/cli/src/cli-rl.c @@ -17,7 +17,7 @@ #include "cli-cmd.h" #include "cli-mem-types.h" -#include "gf-event.h" +#include <glusterfs/gf-event.h> #include <fnmatch.h> diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 4c212d6cde9..4dcabbdb04b 100644 --- a/cli/src/cli-rpc-ops.c +++ b/cli/src/cli-rpc-ops.c @@ -24,7 +24,7 @@ #define REBAL_ESTIMATE_START_TIME 600 #include "cli.h" -#include "compat-errno.h" +#include <glusterfs/compat-errno.h> #include "cli-cmd.h" #include <sys/uio.h> #include <stdlib.h> @@ -33,18 +33,18 @@ #include "xdr-generic.h" #include "protocol-common.h" #include "cli-mem-types.h" -#include "compat.h" -#include "upcall-utils.h" +#include <glusterfs/compat.h> +#include <glusterfs/upcall-utils.h> -#include "syscall.h" +#include <glusterfs/syscall.h> #include "glusterfs3.h" #include "portmap-xdr.h" -#include "byte-order.h" +#include <glusterfs/byte-order.h> #include "cli-quotad-client.h" -#include "run.h" -#include "quota-common-utils.h" -#include "events.h" +#include <glusterfs/run.h> +#include <glusterfs/quota-common-utils.h> +#include <glusterfs/events.h> enum gf_task_types { GF_TASK_TYPE_REBALANCE, GF_TASK_TYPE_REMOVE_BRICK }; diff --git a/cli/src/cli-xml-output.c b/cli/src/cli-xml-output.c index fa79066cb3a..b417bb807ba 100644 --- a/cli/src/cli-xml-output.c +++ b/cli/src/cli-xml-output.c @@ -10,10 +10,10 @@ #include <stdlib.h> #include "cli.h" #include "cli1-xdr.h" -#include "run.h" -#include "compat.h" -#include "syscall.h" -#include "upcall-utils.h" +#include <glusterfs/run.h> +#include <glusterfs/compat.h> +#include <glusterfs/syscall.h> +#include <glusterfs/upcall-utils.h> enum gf_task_types { GF_TASK_TYPE_REBALANCE, GF_TASK_TYPE_REMOVE_BRICK }; diff --git a/cli/src/cli.c b/cli/src/cli.c index 99fe6f1612c..dfc0a65d02a 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -44,19 +44,19 @@ #include "cli-cmd.h" #include "cli-mem-types.h" -#include "xlator.h" -#include "glusterfs.h" -#include "compat.h" -#include "logging.h" -#include "dict.h" -#include "list.h" -#include "timer.h" -#include "stack.h" -#include "revision.h" -#include "common-utils.h" -#include "gf-event.h" -#include "syscall.h" -#include "call-stub.h" +#include <glusterfs/xlator.h> +#include <glusterfs/glusterfs.h> +#include <glusterfs/compat.h> +#include <glusterfs/logging.h> +#include <glusterfs/dict.h> +#include <glusterfs/list.h> +#include <glusterfs/timer.h> +#include <glusterfs/stack.h> +#include <glusterfs/revision.h> +#include <glusterfs/common-utils.h> +#include <glusterfs/gf-event.h> +#include <glusterfs/syscall.h> +#include <glusterfs/call-stub.h> #include <fnmatch.h> #include "xdr-generic.h" diff --git a/cli/src/cli.h b/cli/src/cli.h index 2c2b4355111..5df86d52f81 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -11,10 +11,10 @@ #define __CLI_H__ #include "rpc-clnt.h" -#include "glusterfs.h" +#include <glusterfs/glusterfs.h> #include "protocol-common.h" -#include "logging.h" -#include "quota-common-utils.h" +#include <glusterfs/logging.h> +#include <glusterfs/quota-common-utils.h> #include "cli1-xdr.h" |