Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
7c722867
Commit
7c722867
authored
7 years ago
by
Pierre Duchemin
Committed by
Adrien Béraud
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update swig binding
Change-Id: Ic2e8c8feb5e29f5c8787c0b9520f060cf20e917d
parent
7b1ce13f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/jni/datatransfer.i
+9
-7
9 additions, 7 deletions
bin/jni/datatransfer.i
with
9 additions
and
7 deletions
bin/jni/datatransfer.i
+
9
−
7
View file @
7c722867
...
...
@@ -21,6 +21,8 @@
*/
%
apply
int32_t
{ DRing::DataTransferEventCode }
;
%
apply
uint64_t
{ DRing::DataTransferId }
;
%
apply
uint64_t
{ const DRing::DataTransferId }
;
%
header
%
{
#
include
"
dring/dring.h
"
...
...
@@ -30,7 +32,7 @@
class
DataTransferCallback
{
public
:
virtual
~
DataTransferCallback
()
{}
virtual
void
dataTransferEvent
(
const
uint64_t
transferId
,
int
eventCode
)
{}
virtual
void
dataTransferEvent
(
const
DRing
::
DataTransferId
transferId
,
int
eventCode
)
{}
}
;
%
}
...
...
@@ -50,17 +52,17 @@ namespace DRing {
std::string peer;
};
void acceptFileTransfer(const
uint64_t
id, const std::string &file_path, std::size_t offset);
void cancelDataTransfer(const
uint64_t
id);
std::streamsize dataTransferBytesProgress(const
uint64_t
id);
DRing::DataTransferInfo dataTransferInfo(const
uint64_t id
);
void acceptFileTransfer(const
DRing::DataTransferId
id, const std::string &file_path, std::size_t offset);
void cancelDataTransfer(const
DRing::DataTransferId
id);
std::streamsize dataTransferBytesProgress(const
DRing::DataTransferId
id);
DRing::DataTransferInfo dataTransferInfo(const
DRing::DataTransferId id) throw(std::invalid_argument
);
/* std::vector<uint64_t> dataTransferList(); */
uint64_t
sendFile(const std::string &account_id, const std::string &peer_uri, const std::string &file_path, const std::string &display_name) throw(std::invalid_argument, std::runtime_error);
DRing::DataTransferId
sendFile(const std::string &account_id, const std::string &peer_uri, const std::string &file_path, const std::string &display_name) throw(std::invalid_argument, std::runtime_error);
}
class
DataTransferCallback
{
public
:
virtual
~
DataTransferCallback
()
{}
virtual
void
dataTransferEvent
(
const
uint64_t
transferId
,
int
eventCode
)
{}
virtual
void
dataTransferEvent
(
const
DRing
::
DataTransferId
transferId
,
int
eventCode
)
{}
}
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment