From: Wael M. Nasreddine Date: Sat, 26 Sep 2015 02:43:03 +0000 (+1700) Subject: expose notmuch_database_new to libraries? X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=aa33849c7f24e98caa63edd67291c770e64cca93;p=notmuch-archives.git expose notmuch_database_new to libraries? --- diff --git a/5f/c06c4c4338fb2f207ab09bd27459b5c5ec0940 b/5f/c06c4c4338fb2f207ab09bd27459b5c5ec0940 new file mode 100644 index 000000000..b9607ca3c --- /dev/null +++ b/5f/c06c4c4338fb2f207ab09bd27459b5c5ec0940 @@ -0,0 +1,75 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 9635F6DE0924 + for ; Fri, 25 Sep 2015 19:43:26 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.651 +X-Spam-Level: +X-Spam-Status: No, score=0.651 tagged_above=-999 required=5 tests=[AWL=1.452, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, + SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id JXbAJvPssB_S for ; + Fri, 25 Sep 2015 19:43:24 -0700 (PDT) +Received: from mail-io0-f174.google.com (mail-io0-f174.google.com + [209.85.223.174]) + by arlo.cworth.org (Postfix) with ESMTPS id DDC286DE02D2 + for ; Fri, 25 Sep 2015 19:43:23 -0700 (PDT) +Received: by iofh134 with SMTP id h134so128724486iof.0 + for ; Fri, 25 Sep 2015 19:43:23 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=mime-version:from:date:message-id:subject:to:content-type; + bh=JN+f+SdcS9+ZbYOQ8OyS7v4w2YDOr/k6JMPuAQoyq3E=; + b=flRg8q+fgYhSSyW4w+SoBUcgesHcOk8vwMyYgKIUT2ZL3dxxWCu8us3Fn/KnOSjlFU + e1f5ctqoz9Vl93SzUiEO+w89xf0Mbh2uXVdsu00q7j4XAlKau51eJtOaKXIGNtCt7qrP + 2iD5RLCP6hqC9oB/eU1qQTutaeEyYRdQhYeqaGyjZOfTceo9E+YLYxFNR5Zd1Fodrxf+ + YFMQW8aHEpg9fMsV57kklUqpsbkxdglPcRY6h3CXemrFENMNozT4fc5FeVLdoXv9Cd/K + PzBhQ71L5ek+Z5HPwf++SoJ1aLnFKY1GNK18gfiYHwaxDWwry4a5gdxeQQkkieVEKKWB + uthQ== +X-Received: by 10.107.31.135 with SMTP id f129mr11490018iof.8.1443235402993; + Fri, 25 Sep 2015 19:43:22 -0700 (PDT) +MIME-Version: 1.0 +Received: by 10.36.111.136 with HTTP; Fri, 25 Sep 2015 19:43:03 -0700 (PDT) +From: "Wael M. Nasreddine" +Date: Fri, 25 Sep 2015 19:43:03 -0700 +Message-ID: + +Subject: expose notmuch_database_new to libraries? +To: notmuch +Content-Type: text/plain; charset=UTF-8 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 26 Sep 2015 02:43:26 -0000 + +Hello, + +I have a use case where I'd like to call 'notmuch new' +programmatically via the bindings (custom Go bindings). Is it at all +possible to expose notmuch_new_command[0] through lib/notmuch.h? The +logic of notmuch_new_command would probably have to extracted to +lib/database.cc for the exposure. + +Thanks, + +Wael + + +[0]: https://github.com/notmuch/notmuch/blob/master/notmuch-new.c#L933 + +-- +Wael Nasreddine | Senior Full Stack Engineer at Dailymotion | (650) 933-3448