From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WJCOLkkDkWAUcgAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 10:18:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OPsfKkkDkWDsIgAAbx9fmQ (envelope-from ) for ; Tue, 04 May 2021 08:18:17 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E9931169A for ; Tue, 4 May 2021 10:18:17 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7C791271D5; Tue, 4 May 2021 04:18:05 -0400 (EDT) Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::22b]) by mail.notmuchmail.org (Postfix) with ESMTPS id DA64E1FAC2 for ; Tue, 4 May 2021 04:18:00 -0400 (EDT) Received: by mail-oi1-x22b.google.com with SMTP id e25so8032336oii.2 for ; Tue, 04 May 2021 01:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YEiaIH2wTipavtePQgme456JEOi/SkhVap2fMIzA8Yk=; b=jgQc4+RP7FhclWD790Dg72ZDivdNG9aPv75qOU0VZuknbUbL290YbvXIXBk550JmR4 31gLbvrKyoDc/2jpdaVc35LN8ZTb3Yhqh/2/w63Vn05AZkBmq65hZh0XSbCIfrMmWUuD Li19f7/JW3dY75ad2FrAplADiMJhgqOvfbUu+pdt774mqD6iqe6Hz5WYBXlrrZgtUG2B pFJcnf5dEOgDy9Vq6f4D8cNBmD4/eB6pE/t2k/fP6MIr8V3jNeRjbYvG7B+IaawBSJBA J7tkE4tbDHXB7M4jpw/j/yBL0jMUk4xqMFci/2Bvq+F0AFZhJ/tSrQ+E8DcIWGq8ISIP rk5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YEiaIH2wTipavtePQgme456JEOi/SkhVap2fMIzA8Yk=; b=blLJ5mA4FxndlGFILZIsKp+df0p/FlXzovGNrsYbbZUxOoXWfq4xx2mJP48WZEc5vs TI/sJMyflBgTvnV+OCqM8uzcfvNlVBqfwc6ndD2WoOGeYMOWURqhdESCYeaLau5Rn2LR 7BiT/ekPcQw0GFN4UfHYhjT/FGe93JglMr6Fyki1gvEaWUa5YmFRjvFW9TIqpFD4Kbr2 F6WJqVkNJtFNbqu5HF5gJRhXrIkdNAyp0YgQG1kozgth7v6m3JG1Ff8k0J3RTSGEEUEd PYNe33zrmJGa72kWYM9OI/KLOepaEJA9tjf5thYR5AA2+bttXbkifyZvwWg1HdvobOkF 0GBg== X-Gm-Message-State: AOAM5320uljF+eyDVMWFy/JTPjNd92LgcPeOXVGIce+Ahv2lmI3HVCeN lpWnFk7bqWjxA5ugEE9hCtHtdU4UB2Wy4w== X-Google-Smtp-Source: ABdhPJzeVKWjWDlwJGPD4jvCPm4vYuNxJqlyIpeK26C/brXhfa+GofYsJwB1AToIU1kRnqjEh1GOlA== X-Received: by 2002:a54:4090:: with SMTP id i16mr2894992oii.96.1620116279750; Tue, 04 May 2021 01:17:59 -0700 (PDT) Received: from localhost (fixed-187-190-78-172.totalplay.net. [187.190.78.172]) by smtp.gmail.com with ESMTPSA id n5sm577151otr.33.2021.05.04.01.17.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 May 2021 01:17:59 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH v2 01/10] ruby: add missing Data_Get_Notmuch helpers Date: Tue, 4 May 2021 03:17:40 -0500 Message-Id: <20210504081749.715768-2-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210504081749.715768-1-felipe.contreras@gmail.com> References: <20210504081749.715768-1-felipe.contreras@gmail.com> MIME-Version: 1.0 Message-ID-Hash: SZ3YVUJSQVHP2G2JWROUGTSSKO6O3IFS X-Message-ID-Hash: SZ3YVUJSQVHP2G2JWROUGTSSKO6O3IFS X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Ali Polatel , Austin Clements , Tomi Ollila , Ludovic LANGE , Daniel Kahn Gillmor X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620116297; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=G377oLKAUkBWGPNgfIuK8zcghpng7GWJhDfn1AVMn1E=; b=YO6ktP41tggkFfIKIeZh4NUf3SlJ1SZmXXWQatl3Bj6KrcxJ6ptM60mIh/Fp7+sJ9Ms9ka /AIDONmUrIIWxEnIjx2aoo1TszKocLCNqVtX8Qk28x2kiYfhQtfqsG1FK3xwiJispzbC5d zbeoNlLaosRUm/8qGD6lCZ6l44+Pf6YPzx51Iu+1EWNqYdkloeBfOena6yh947qeCvWruk qURDsd+DlOPfpz7sGd4RzyTOIObrpLyyrcBgi53LJviMVBO3YvEsGYLysreF2zhxiRVjjd hJPqHOLXDgLKEYfmIaJ64IIhx4xd3GOMROyoe6Vbux7YN/r28z9gjQwXDU7cbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620116297; a=rsa-sha256; cv=none; b=PCT8RE7FAaTnNwO0AmxWzF+05JKBv/wG/zx21VfR5PKkZfoo+iv7nFIIzEh9lUULl3VnGb PK0urejzJ7mkP7JH80TgZEJN1/RAN8HZFO1iOC3Ir/dzunj6kkXFT7noPMaNXI2xeC2sWa AJhbvhzJmnO9bBKhIYyXkL+7PFZLQFZ9d29efHyX298PApULjUq3eFxfQk8pUnKjpzjF4O +z6WI5Ot/tuPN1V6NMzxrG+HBjbnb+9wWYVta5vBUcUjW/96EX3Q6yZoEOqCcHU99HLFFa EJRf2zGD+1aik3e+R4MJsYKxfGqtzgMVyvZSEOpZ5+o7yi4tRm5OMALEeO/Oyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=jgQc4+RP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 0.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20161025 header.b=jgQc4+RP; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 6E9931169A X-Spam-Score: 0.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: peI7oTsKzMqq Apparently commit 5c9e3855 (ruby: Don't barf if an object is destroyed more than once, 2010-05-26) missed these two. Signed-off-by: Felipe Contreras --- bindings/ruby/directory.c | 2 +- bindings/ruby/threads.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/directory.c b/bindings/ruby/directory.c index 0f37b391..fe5fc46d 100644 --- a/bindings/ruby/directory.c +++ b/bindings/ruby/directory.c @@ -30,7 +30,7 @@ notmuch_rb_directory_destroy (VALUE self) { notmuch_directory_t *dir; - Data_Get_Struct (self, notmuch_directory_t, dir); + Data_Get_Notmuch_Directory (self, dir); notmuch_directory_destroy (dir); DATA_PTR (self) = NULL; diff --git a/bindings/ruby/threads.c b/bindings/ruby/threads.c index ed403a8f..5885f565 100644 --- a/bindings/ruby/threads.c +++ b/bindings/ruby/threads.c @@ -30,7 +30,7 @@ notmuch_rb_threads_destroy (VALUE self) { notmuch_threads_t *threads; - Data_Get_Struct (self, notmuch_threads_t, threads); + Data_Get_Notmuch_Threads (self, threads); notmuch_threads_destroy (threads); DATA_PTR (self) = NULL; -- 2.31.0