From patchwork Fri Sep 11 00:23:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eduardo Habkost X-Patchwork-Id: 1362122 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=X327hNTb; dkim-atps=neutral Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bnc265q02z9sTv for ; Fri, 11 Sep 2020 10:24:13 +1000 (AEST) Received: from localhost ([::1]:58416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGWrJ-0008Qu-Mp for incoming@patchwork.ozlabs.org; Thu, 10 Sep 2020 20:24:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGWqs-0008QT-Gm for qemu-devel@nongnu.org; Thu, 10 Sep 2020 20:23:42 -0400 Received: from us-smtp-2.mimecast.com ([207.211.31.81]:29970 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kGWqp-0000tA-Ug for qemu-devel@nongnu.org; Thu, 10 Sep 2020 20:23:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1599783818; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ofoTr6pbu0BQoyMo87r9E4ANE2rBpWuYtrqlFMHgvrg=; b=X327hNTbgZaUqwAMNYB7hsUIGzLG1PU/0h/k5qKdAN2xyrsgGqjOgoPMypBA4CuadG/66L N7KFdoGUvAlbCQ7bHEBJFqHGhPu9fB1PX6kN7qQLGwQm4Zof21M61sf/c5zjsXLclXmV49 GvFIjYqmR9ZTOC/YkxOGyJ5sj5bTeLY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-595-KVgwRT3BP_e4nmCD3MBTsQ-1; Thu, 10 Sep 2020 20:23:36 -0400 X-MC-Unique: KVgwRT3BP_e4nmCD3MBTsQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 721171006714; Fri, 11 Sep 2020 00:23:35 +0000 (UTC) Received: from localhost (ovpn-66-226.rdu2.redhat.com [10.10.66.226]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2116210013D9; Fri, 11 Sep 2020 00:23:34 +0000 (UTC) Date: Thu, 10 Sep 2020 20:23:33 -0400 From: Eduardo Habkost To: qemu-devel@nongnu.org Subject: fixup! docs: Move object.h overview doc comment to qom.rst Message-ID: <20200911002333.GP1618070@habkost.net> References: <20200910221526.10041-1-ehabkost@redhat.com> <20200910221526.10041-10-ehabkost@redhat.com> MIME-Version: 1.0 In-Reply-To: <20200910221526.10041-10-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ehabkost@redhat.com X-Mimecast-Spam-Score: 0.001 X-Mimecast-Originator: redhat.com Content-Disposition: inline Received-SPF: pass client-ip=207.211.31.81; envelope-from=ehabkost@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/10 20:23:38 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paolo Bonzini , Daniel =?utf-8?b?UC4gQmVycmFuZ8Op?= , Peter Maydell Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" On Thu, Sep 10, 2020 at 06:15:26PM -0400, Eduardo Habkost wrote: > Move the whole contents of the overview doc comment from object.h > to qom.rst. > > This makes the documentation source easier to read and edit, and > also solves the backslash escaping issue at the typecasting macro > examples. > > Signed-off-by: Eduardo Habkost Fixup for a bug I introduced accidentally before sending the series. Signed-off-by: Eduardo Habkost diff --git a/docs/devel/qom.rst b/docs/devel/qom.rst index 2070a2ced4..1a2e5dc661 100644 --- a/docs/devel/qom.rst +++ b/docs/devel/qom.rst @@ -80,7 +80,7 @@ specific type: .. code-block:: :caption: Typecasting macros -#define MY_DEVICE_GET_CLASS(obj) \ + #define MY_DEVICE_GET_CLASS(obj) \ OBJECT_GET_CLASS(MyDeviceClass, obj, TYPE_MY_DEVICE) #define MY_DEVICE_CLASS(klass) \ OBJECT_CLASS_CHECK(MyDeviceClass, klass, TYPE_MY_DEVICE)