Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
9b219a37
Commit
9b219a37
authored
Jul 17, 2019
by
Ming Rui Zhang
Committed by
Adrien Béraud
Jul 17, 2019
Browse files
peerdiscovery: add NearbyPeerNotification into Android/IOS interface
Change-Id: Ife5083f5bcc759bc9f2cd535421c2cf7cdeebcac
parent
e30d12a8
Changes
3
Hide whitespace changes
Inline
Side-by-side
bin/jni/jni_interface.i
View file @
9b219a37
...
@@ -275,6 +275,7 @@ void init(ConfigurationCallback* confM, Callback* callM, PresenceCallback* presM
...
@@ -275,6 +275,7 @@ void init(ConfigurationCallback* confM, Callback* callM, PresenceCallback* presM
exportable_callback
<
PresenceSignal
::
NewServerSubscriptionRequest
>
(
bind
(
&
PresenceCallback::newServerSubscriptionRequest,
presM,
_1
)),
exportable_callback
<
PresenceSignal
::
NewServerSubscriptionRequest
>
(
bind
(
&
PresenceCallback::newServerSubscriptionRequest,
presM,
_1
)),
exportable_callback
<
PresenceSignal
::
ServerError
>
(
bind
(
&
PresenceCallback::serverError,
presM,
_1,
_2,
_3
)),
exportable_callback
<
PresenceSignal
::
ServerError
>
(
bind
(
&
PresenceCallback::serverError,
presM,
_1,
_2,
_3
)),
exportable_callback
<
PresenceSignal
::
NewBuddyNotification
>
(
bind
(
&
PresenceCallback::newBuddyNotification,
presM,
_1,
_2,
_3,
_4
)),
exportable_callback
<
PresenceSignal
::
NewBuddyNotification
>
(
bind
(
&
PresenceCallback::newBuddyNotification,
presM,
_1,
_2,
_3,
_4
)),
exportable_callback
<
PresenceSignal
::
NearbyPeerNotification
>
(
bind
(
&
PresenceCallback::nearbyPeerNotification,
presM,
_1,
_2,
_3,
_4)),
exportable_callback
<
PresenceSignal
::
SubscriptionStateChanged
>
(
bind
(
&
PresenceCallback::subscriptionStateChanged,
presM,
_1,
_2,
_3
))
exportable_callback
<
PresenceSignal
::
SubscriptionStateChanged
>
(
bind
(
&
PresenceCallback::subscriptionStateChanged,
presM,
_1,
_2,
_3
))
}
;
}
;
...
...
bin/jni/presencemanager.i
View file @
9b219a37
...
@@ -28,6 +28,7 @@ public:
...
@@ -28,6 +28,7 @@ public:
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
nearbyPeerNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
,
const
std
::
string&
/*displayname*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
}
;
}
;
%
}
%
}
...
@@ -50,5 +51,6 @@ public:
...
@@ -50,5 +51,6 @@ public:
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
nearbyPeerNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
,
const
std
::
string&
/*displayname*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
}
;
}
;
\ No newline at end of file
bin/nodejs/presencemanager.i
View file @
9b219a37
...
@@ -28,6 +28,7 @@ public:
...
@@ -28,6 +28,7 @@ public:
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
nearbyPeerNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
,
const
std
::
string&
/*displayname*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
}
;
}
;
%
}
%
}
...
@@ -50,5 +51,6 @@ public:
...
@@ -50,5 +51,6 @@ public:
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
newServerSubscriptionRequest
(
const
std
::
string&
/*remote*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
serverError
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*error*/
,
const
std
::
string&
/*msg*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
newBuddyNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*status*/
,
const
std
::
string&
/*line_status*/
)
{}
virtual
void
nearbyPeerNotification
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
,
const
std
::
string&
/*displayname*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
virtual
void
subscriptionStateChanged
(
const
std
::
string&
/*account_id*/
,
const
std
::
string&
/*buddy_uri*/
,
int
/*state*/
)
{}
}
;
}
;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment