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
b65146fe
Commit
b65146fe
authored
3 years ago
by
Olivier Dion
Committed by
Sébastien Blin
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
agent/bindings/account: Add add-contact, remove-contact bindings
Change-Id: I2fca281e9144d06243ca09879a1d86551ccd1996
parent
66ab5181
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/agent/src/bindings/account.h
+26
-0
26 additions, 0 deletions
test/agent/src/bindings/account.h
with
26 additions
and
0 deletions
test/agent/src/bindings/account.h
+
26
−
0
View file @
b65146fe
...
@@ -125,6 +125,30 @@ subscribe_buddy_binding(SCM accountID_str, SCM peer_uri_str, SCM flag_bool)
...
@@ -125,6 +125,30 @@ subscribe_buddy_binding(SCM accountID_str, SCM peer_uri_str, SCM flag_bool)
return
SCM_UNDEFINED
;
return
SCM_UNDEFINED
;
}
}
static
SCM
add_contact_binding
(
SCM
accountID_str
,
SCM
uri_str
)
{
LOG_BINDING
();
DRing
::
addContact
(
from_guile
(
accountID_str
),
from_guile
(
uri_str
));
return
SCM_UNDEFINED
;
}
static
SCM
remove_contact_binding
(
SCM
accountID_str
,
SCM
uri_str
,
SCM
ban_optional_bool
)
{
LOG_BINDING
();
DRing
::
removeContact
(
from_guile
(
accountID_str
),
from_guile
(
uri_str
),
from_guile
(
ban_optional_bool
));
return
SCM_UNDEFINED
;
}
static
void
static
void
install_account_primitives
(
void
*
)
install_account_primitives
(
void
*
)
{
{
...
@@ -133,6 +157,8 @@ install_account_primitives(void *)
...
@@ -133,6 +157,8 @@ install_account_primitives(void *)
define_primitive
(
"send-register"
,
2
,
0
,
0
,
(
void
*
)
send_register_binding
);
define_primitive
(
"send-register"
,
2
,
0
,
0
,
(
void
*
)
send_register_binding
);
define_primitive
(
"account->archive"
,
2
,
1
,
0
,
(
void
*
)
export_to_file_binding
);
define_primitive
(
"account->archive"
,
2
,
1
,
0
,
(
void
*
)
export_to_file_binding
);
define_primitive
(
"add"
,
1
,
1
,
0
,
(
void
*
)
add_account_binding
);
define_primitive
(
"add"
,
1
,
1
,
0
,
(
void
*
)
add_account_binding
);
define_primitive
(
"add-contact"
,
2
,
0
,
0
,
(
void
*
)
add_contact_binding
);
define_primitive
(
"remove-contact"
,
2
,
1
,
0
,
(
void
*
)
remove_contact_binding
);
define_primitive
(
"accept-trust-request"
,
2
,
0
,
0
,
(
void
*
)
accept_trust_request_binding
);
define_primitive
(
"accept-trust-request"
,
2
,
0
,
0
,
(
void
*
)
accept_trust_request_binding
);
define_primitive
(
"send-trust-request"
,
2
,
1
,
0
,
(
void
*
)
send_trust_request_binding
);
define_primitive
(
"send-trust-request"
,
2
,
1
,
0
,
(
void
*
)
send_trust_request_binding
);
define_primitive
(
"get-contacts"
,
1
,
0
,
0
,
(
void
*
)
get_contacts_binding
);
define_primitive
(
"get-contacts"
,
1
,
0
,
0
,
(
void
*
)
get_contacts_binding
);
...
...
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