libpaf 1.1.13
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
301#include <stdint.h>
302#include <sys/types.h>
303
304#include <paf_props.h>
305#include <paf_match.h>
306#include <paf_err.h>
307
308struct paf_context;
309
332struct paf_context *paf_attach(const char *domain_name);
333
356int64_t paf_publish(struct paf_context *context, const struct paf_props *props);
357
385int paf_modify(struct paf_context *context, int64_t service_id,
386 const struct paf_props *props);
387
406void paf_set_ttl(struct paf_context *context, int64_t service_id, int64_t ttl);
407
426void paf_unpublish(struct paf_context *context, int64_t service_id);
427
464int64_t paf_subscribe(struct paf_context *context, const char *filter,
465 paf_match_cb match_cb, void *user);
466
479void paf_unsubscribe(struct paf_context *context, int64_t subscription_id);
480
506int paf_fd(struct paf_context *context);
507
542int paf_process(struct paf_context *context);
543
567void paf_detach(struct paf_context *context);
568
583void paf_close(struct paf_context *context);
584
610char *paf_filter_escape(const char *s);
611
612#ifdef __cplusplus
613}
614#endif
615#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.