libpaf 1.1.6
Loading...
Searching...
No Matches
paf.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2020-2021 Ericsson AB
4 */
5
6#ifndef PAF_H
7#define PAF_H
8#ifdef __cplusplus
9extern "C" {
10#endif
11
239#include <stdint.h>
240#include <sys/types.h>
241
242#include <paf_props.h>
243#include <paf_match.h>
244#include <paf_err.h>
245
246struct paf_context;
247
270struct paf_context *paf_attach(const char *domain_name);
271
294int64_t paf_publish(struct paf_context *context, const struct paf_props *props);
295
323int paf_modify(struct paf_context *context, int64_t service_id,
324 const struct paf_props *props);
325
344void paf_set_ttl(struct paf_context *context, int64_t service_id, int64_t ttl);
345
364void paf_unpublish(struct paf_context *context, int64_t service_id);
365
402int64_t paf_subscribe(struct paf_context *context, const char *filter,
403 paf_match_cb match_cb, void *user);
404
417void paf_unsubscribe(struct paf_context *context, int64_t subscription_id);
418
444int paf_fd(struct paf_context *context);
445
480int paf_process(struct paf_context *context);
481
505void paf_detach(struct paf_context *context);
506
521void paf_close(struct paf_context *context);
522
548char *paf_filter_escape(const char *s);
549
550#ifdef __cplusplus
551}
552#endif
553#endif
int64_t paf_publish(struct paf_context *context, const struct paf_props *props)
int paf_fd(struct paf_context *context)
void paf_unsubscribe(struct paf_context *context, int64_t subscription_id)
struct paf_context * paf_attach(const char *domain_name)
int paf_process(struct paf_context *context)
int paf_modify(struct paf_context *context, int64_t service_id, const struct paf_props *props)
void paf_detach(struct paf_context *context)
void paf_close(struct paf_context *context)
void paf_set_ttl(struct paf_context *context, int64_t service_id, int64_t ttl)
char * paf_filter_escape(const char *s)
int64_t paf_subscribe(struct paf_context *context, const char *filter, paf_match_cb match_cb, void *user)
void paf_unpublish(struct paf_context *context, int64_t service_id)
Pathfinder Client Library's Subscription Match-related Data Structure.
void(* paf_match_cb)(enum paf_match_type match_type, int64_t service_id, const struct paf_props *props, void *user)
Definition paf_match.h:62
Pathfinder Service Properties API.