From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id BB85958E4 for ; Fri, 29 May 2015 17:33:06 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP; 29 May 2015 08:33:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,517,1427785200"; d="scan'208";a="737420862" Received: from unknown (HELO stargo) ([10.217.248.233]) by orsmga002.jf.intel.com with SMTP; 29 May 2015 08:32:58 -0700 Received: by stargo (sSMTP sendmail emulation); Fri, 29 May 2015 17:31:25 +0200 From: Maciej Gajdzica To: dev@dpdk.org Date: Fri, 29 May 2015 17:26:57 +0200 Message-Id: <1432913219-11589-2-git-send-email-maciejx.t.gajdzica@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432913219-11589-1-git-send-email-maciejx.t.gajdzica@intel.com> References: <1432913219-11589-1-git-send-email-maciejx.t.gajdzica@intel.com> Subject: [dpdk-dev] [PATCH 1/3] librte_cfgfile: fix code formating in header file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 May 2015 15:33:07 -0000 From: Pawel Wodkowski Signed-off-by: Pawel Wodkowski --- lib/librte_cfgfile/rte_cfgfile.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/lib/librte_cfgfile/rte_cfgfile.h b/lib/librte_cfgfile/rte_cfgfile.h index 7c9fc91..860ce44 100644 --- a/lib/librte_cfgfile/rte_cfgfile.h +++ b/lib/librte_cfgfile/rte_cfgfile.h @@ -69,7 +69,8 @@ struct rte_cfgfile_entry { * @return * Handle to configuration file */ -struct rte_cfgfile *rte_cfgfile_load(const char *filename, int flags); +struct rte_cfgfile * +rte_cfgfile_load(const char *filename, int flags); /** * Get number of sections in config file @@ -83,7 +84,8 @@ struct rte_cfgfile *rte_cfgfile_load(const char *filename, int flags); * @return * 0 on success, error code otherwise */ -int rte_cfgfile_num_sections(struct rte_cfgfile *cfg, const char *sec_name, +int +rte_cfgfile_num_sections(struct rte_cfgfile *cfg, const char *sec_name, size_t length); /** @@ -103,7 +105,8 @@ int rte_cfgfile_num_sections(struct rte_cfgfile *cfg, const char *sec_name, * @return * 0 on success, error code otherwise */ -int rte_cfgfile_sections(struct rte_cfgfile *cfg, char *sections[], +int +rte_cfgfile_sections(struct rte_cfgfile *cfg, char *sections[], int max_sections); /** @@ -116,7 +119,8 @@ int rte_cfgfile_sections(struct rte_cfgfile *cfg, char *sections[], * @return * TRUE (value different than 0) if section exists, FALSE (value 0) otherwise */ -int rte_cfgfile_has_section(struct rte_cfgfile *cfg, const char *sectionname); +int +rte_cfgfile_has_section(struct rte_cfgfile *cfg, const char *sectionname); /** * Get number of entries in given config file section @@ -128,7 +132,8 @@ int rte_cfgfile_has_section(struct rte_cfgfile *cfg, const char *sectionname); * @return * Number of entries in section */ -int rte_cfgfile_section_num_entries(struct rte_cfgfile *cfg, +int +rte_cfgfile_section_num_entries(struct rte_cfgfile *cfg, const char *sectionname); /** Get section entries as key-value pairs @@ -145,7 +150,8 @@ int rte_cfgfile_section_num_entries(struct rte_cfgfile *cfg, * @return * 0 on success, error code otherwise */ -int rte_cfgfile_section_entries(struct rte_cfgfile *cfg, +int +rte_cfgfile_section_entries(struct rte_cfgfile *cfg, const char *sectionname, struct rte_cfgfile_entry *entries, int max_entries); @@ -161,7 +167,8 @@ int rte_cfgfile_section_entries(struct rte_cfgfile *cfg, * @return * Entry value */ -const char *rte_cfgfile_get_entry(struct rte_cfgfile *cfg, +const char * +rte_cfgfile_get_entry(struct rte_cfgfile *cfg, const char *sectionname, const char *entryname); @@ -176,7 +183,8 @@ const char *rte_cfgfile_get_entry(struct rte_cfgfile *cfg, * @return * TRUE (value different than 0) if entry exists, FALSE (value 0) otherwise */ -int rte_cfgfile_has_entry(struct rte_cfgfile *cfg, const char *sectionname, +int +rte_cfgfile_has_entry(struct rte_cfgfile *cfg, const char *sectionname, const char *entryname); /** Close config file @@ -186,7 +194,8 @@ int rte_cfgfile_has_entry(struct rte_cfgfile *cfg, const char *sectionname, * @return * 0 on success, error code otherwise */ -int rte_cfgfile_close(struct rte_cfgfile *cfg); +int +rte_cfgfile_close(struct rte_cfgfile *cfg); #ifdef __cplusplus } -- 1.9.1