From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 10 19:36:01 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8E6B7C1C; Wed, 10 Dec 2014 19:36:01 +0000 (UTC) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0112.outbound.protection.outlook.com [65.55.169.112]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B2B87907; Wed, 10 Dec 2014 19:36:00 +0000 (UTC) Received: from CO2PR05CA031.namprd05.prod.outlook.com (10.141.241.159) by CO1PR05MB443.namprd05.prod.outlook.com (10.141.73.152) with Microsoft SMTP Server (TLS) id 15.1.31.17; Wed, 10 Dec 2014 19:35:58 +0000 Received: from BN1BFFO11FD054.protection.gbl (2a01:111:f400:7c10::1:113) by CO2PR05CA031.outlook.office365.com (2a01:111:e400:1429::31) with Microsoft SMTP Server (TLS) id 15.1.31.17 via Frontend Transport; Wed, 10 Dec 2014 19:35:58 +0000 Received: from P-EMF03-SAC.jnpr.net (66.129.239.17) by BN1BFFO11FD054.mail.protection.outlook.com (10.58.145.9) with Microsoft SMTP Server (TLS) id 15.1.26.17 via Frontend Transport; Wed, 10 Dec 2014 19:35:57 +0000 Received: from magenta.juniper.net (172.17.27.123) by P-EMF03-SAC.jnpr.net (172.24.192.21) with Microsoft SMTP Server (TLS) id 14.3.146.0; Wed, 10 Dec 2014 11:35:37 -0800 Received: from idle.juniper.net (idleski.juniper.net [172.25.4.26]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id sBAJZZR16670; Wed, 10 Dec 2014 11:35:35 -0800 (PST) (envelope-from phil@juniper.net) Received: from idle.juniper.net (localhost [127.0.0.1]) by idle.juniper.net (8.14.4/8.14.3) with ESMTP id sBAJZL5I076079; Wed, 10 Dec 2014 14:35:21 -0500 (EST) (envelope-from phil@idle.juniper.net) Message-ID: <201412101935.sBAJZL5I076079@idle.juniper.net> To: Konstantin Belousov Subject: Re: [Patch] updated: Add JSON and XML output to pciconf (libxo support - D1206) In-Reply-To: <20141209164516.GB97072@kib.kiev.ua> Date: Wed, 10 Dec 2014 14:35:21 -0500 From: Phil Shafer MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:66.129.239.17; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(164054003)(64706001)(47776003)(120916001)(87936001)(20776003)(103666002)(97736003)(21056001)(105596002)(69596002)(84676001)(48376002)(50466002)(46102003)(6806004)(107046002)(53416004)(92566001)(86362001)(76506005)(110136001)(1411001)(4396001)(31966008)(50986999)(54356999)(81156004)(106466001)(99396003)(62966003)(77156002)(68736005)(77096005)(15975445007); DIR:OUT; SFP:1102; SCL:1; SRVR:CO1PR05MB443; H:P-EMF03-SAC.jnpr.net; FPR:; SPF:SoftFail; MLV:sfv; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Antispam: UriScan:; X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:;SRVR:CO1PR05MB443; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601002); SRVR:CO1PR05MB443; X-Forefront-PRVS: 0421BF7135 Received-SPF: SoftFail (protection.outlook.com: domain of transitioning juniper.net discourages use of 66.129.239.17 as permitted sender) Authentication-Results: spf=softfail (sender IP is 66.129.239.17) smtp.mailfrom=phil@juniper.net; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:;SRVR:CO1PR05MB443; X-OriginatorOrg: juniper.net X-Mailman-Approved-At: Wed, 10 Dec 2014 19:56:12 +0000 Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 19:36:01 -0000 Konstantin Belousov writes: >If it is required that the name be identical, it makes more sense >to require some handle to be passed to functions instead of the string. >I.e. either there should be some atom-like calls which convert string >to identifier, or first call should return handle passed to consequent >calls. The library supports "do the right thing" mode, where it records the open tag value and doesn't need the user to provide it: http://juniper.github.io/libxo/libxo-manual.html#dtrt-mode I could enable this by default and use it when NULL is passed for an instance name. Thanks, Phil