From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:400c:c09::236; helo=mail-wm0-x236.google.com; envelope-from=arthompson1990@gmail.com; receiver= Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 1261C77D9F for ; Fri, 26 Jan 2018 10:00:58 -0800 (PST) Received: by mail-wm0-x236.google.com with SMTP id f71so2910587wmf.0 for ; Fri, 26 Jan 2018 10:01:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=2nXcREjRuHBQxin/R0Tg8Jhz9Qil819oBE4y/GMHehw=; b=ssWvbus5XCQK8hEAFmgWiJffJ8k/RgObKRKPKHS1t9FZ3eCwyR6659ckECljo1P8mK szvCzwMg+QFH1gtdn+yWzA0Rbq1OA4+INT140k+ukmkyFh1vTE6WnHOeLrxE9U3hBsu+ ktG9ntmcRHmf+JW7qQ17uHBkNHmdBFUILfDXGIO1464WsoCCtaiSfTS3E3wsYWqOn1j8 QGWOBl5AuE1RZk86Kqe5H2tmpYL6AYUdCGSFZXLAIbL2e1NkRuYx2PQjTg4TSy6E9c86 zRI0gBo6G28QxkRzwgj5VuaGHJVTpfMLNhPTyYh08g5evDa+zQAwchjLwxTDGeZ6b4UR /alw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=2nXcREjRuHBQxin/R0Tg8Jhz9Qil819oBE4y/GMHehw=; b=qqk4HiZurNCauBMMqI4peggZRhcG4H1LSpZTqZlruIJxgOf7rHcS+k8tqrHYsqAN8f MBdIQKCGglCtK3vz5hn8/CtemdviGhFLJIZV097U+DGHgvZ5oBsOu2X7FXEepOfVcjwb qV9/iTXiRSxZcMwkicKYM5oDPlAikEEHB/bE51PcKlQkQVdE3QfXOmrzqDXPk0I+HyT/ 0w6XbsCM24vk6MHZi99IVB6t5W7hWeZlu7SdRAAxIOBMnYHp/JQgnPHBGyVpO2vxhVlj mLkiFfOVlZERxV/taE7PvXv4S9/BDbcjPRA2DqIr74WibJKsx8kBIAIO0yeAp6EXfbhX xzww== X-Gm-Message-State: AKwxytdz90RP0uBvYo0dsbhutDfLp6VGTuuuEMZw4bBPRhzwYFrbM6ws y4/+o9ct1zQ6u2B8cGa1HfFlTg== X-Google-Smtp-Source: AH8x225ao+LSuByXnuuDPo5I8eLrydQRQxTTx1kexWCGLUsQuovsJq7FkhP04OGxZxMK5a4071NJBA== X-Received: by 10.28.146.197 with SMTP id u188mr11795557wmd.124.1516989670237; Fri, 26 Jan 2018 10:01:10 -0800 (PST) Received: from toaster (48.77.155.90.in-addr.arpa. [90.155.77.48]) by smtp.gmail.com with ESMTPSA id p10sm12980707wrh.61.2018.01.26.10.01.08 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Jan 2018 10:01:09 -0800 (PST) Date: Fri, 26 Jan 2018 18:01:06 +0000 From: Adam Thompson To: Edbrowse-dev@lists.the-brannons.com Message-ID: <20180126180106.t5yhqm3c7pjpjqvm@toaster> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: NeoMutt/20170113 (1.7.2) Subject: [Edbrowse-dev] protocol handlers and outputting to buffer X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.25 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jan 2018 18:00:58 -0000 Hi, Whilst messing around with protocol handlers in edbrowse (specifically to make a gopher plugin), I found that the protocol based plugin support has no support for outputting to the buffer as in the converter plugin support. Specifically, whereas running a converter plugin allows a pipe, the protocol handlers in http.c always call the command using eb_system(). Is there any reason for this or would it be possible to use the command running code from runPluginConverter (may be by pulling out into a generic function so the return codes work) in the protocol handler running code in http.c? This'd allow other protocols to be added as plugins whilst still keeping the edbrowse interface for cases where one wants to download (and possibly preprocess) using an unsupported protocol but display and interact using the edbrowse buffers. If there's no objections to the change I can make the change as I've some time this weekend. Cheers, Adam.