libpaf 1.1.8
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
292#include <stdint.h>
293#include <sys/types.h>
294
295#include <paf_props.h>
296#include <paf_match.h>
297#include <paf_err.h>
298
299struct paf_context;
300
323struct paf_context *paf_attach(const char *domain_name);
324
347int64_t paf_publish(struct paf_context *context, const struct paf_props *props);
348
376int paf_modify(struct paf_context *context, int64_t service_id,
377 const struct paf_props *props);
378
397void paf_set_ttl(struct paf_context *context, int64_t service_id, int64_t ttl);
398
417void paf_unpublish(struct paf_context *context, int64_t service_id);
418
455int64_t paf_subscribe(struct paf_context *context, const char *filter,
456 paf_match_cb match_cb, void *user);
457
470void paf_unsubscribe(struct paf_context *context, int64_t subscription_id);
471
497int paf_fd(struct paf_context *context);
498
533int paf_process(struct paf_context *context);
534
558void paf_detach(struct paf_context *context);
559
574void paf_close(struct paf_context *context);
575
601char *paf_filter_escape(const char *s);
602
603#ifdef __cplusplus
604}
605#endif
606#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.