libpaf 1.1.7
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
287#include <stdint.h>
288#include <sys/types.h>
289
290#include <paf_props.h>
291#include <paf_match.h>
292#include <paf_err.h>
293
294struct paf_context;
295
318struct paf_context *paf_attach(const char *domain_name);
319
342int64_t paf_publish(struct paf_context *context, const struct paf_props *props);
343
371int paf_modify(struct paf_context *context, int64_t service_id,
372 const struct paf_props *props);
373
392void paf_set_ttl(struct paf_context *context, int64_t service_id, int64_t ttl);
393
412void paf_unpublish(struct paf_context *context, int64_t service_id);
413
450int64_t paf_subscribe(struct paf_context *context, const char *filter,
451 paf_match_cb match_cb, void *user);
452
465void paf_unsubscribe(struct paf_context *context, int64_t subscription_id);
466
492int paf_fd(struct paf_context *context);
493
528int paf_process(struct paf_context *context);
529
553void paf_detach(struct paf_context *context);
554
569void paf_close(struct paf_context *context);
570
596char *paf_filter_escape(const char *s);
597
598#ifdef __cplusplus
599}
600#endif
601#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.