core: implement get_attachment_fd event for dbus, message limit for get_messages
This commit is contained in:
@@ -128,6 +128,20 @@
|
||||
"/>
|
||||
</method>
|
||||
|
||||
<method name="OpenAttachmentFd">
|
||||
<arg type="s" name="attachment_id" direction="in"/>
|
||||
<arg type="b" name="preview" direction="in"/>
|
||||
<arg type="h" name="fd" direction="out"/>
|
||||
|
||||
<annotation name="org.freedesktop.DBus.DocString"
|
||||
value="Opens a read-only file descriptor for an attachment path.
|
||||
Arguments:
|
||||
attachment_id: the attachment GUID
|
||||
preview: whether to open the preview path (true) or full path (false)
|
||||
Returns:
|
||||
fd: a Unix file descriptor to read attachment bytes"/>
|
||||
</method>
|
||||
|
||||
<method name="DownloadAttachment">
|
||||
<arg type="s" name="attachment_id" direction="in"/>
|
||||
<arg type="b" name="preview" direction="in"/>
|
||||
|
||||
Reference in New Issue
Block a user