uvt: client: export symbols

This adds the uvt_client symbols to the public symbol list and exports
them so we can use them in uvtd.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
This commit is contained in:
David Herrmann 2013-03-05 18:02:18 +01:00
parent fdf1321fc7
commit 25736f8363
2 changed files with 12 additions and 0 deletions

View File

@ -39,6 +39,12 @@ global:
uvt_cdev_unref;
uvt_cdev_register_cb;
uvt_cdev_unregister_cb;
uvt_client_ref;
uvt_client_unref;
uvt_client_set_vt;
uvt_client_kill;
uvt_client_is_dead;
local:
*;
};

View File

@ -49,6 +49,7 @@
#include <unistd.h>
#include "shl_dlist.h"
#include "shl_llog.h"
#include "shl_misc.h"
#include "uvt.h"
#include "uvt_internal.h"
@ -326,6 +327,7 @@ static int uvt_client_new(struct uvt_client **out, struct uvt_cdev *cdev)
return 0;
}
SHL_EXPORT
void uvt_client_ref(struct uvt_client *client)
{
if (!client || !client->ref)
@ -334,6 +336,7 @@ void uvt_client_ref(struct uvt_client *client)
++client->ref;
}
SHL_EXPORT
void uvt_client_unref(struct uvt_client *client)
{
if (!client || !client->ref || --client->ref)
@ -387,11 +390,13 @@ static void uvt_client_waiters_release(struct uvt_client *client, int error)
}
}
SHL_EXPORT
bool uvt_client_is_dead(struct uvt_client *client)
{
return !client || !client->cdev;
}
SHL_EXPORT
void uvt_client_kill(struct uvt_client *client)
{
if (!client || !client->cdev)
@ -545,6 +550,7 @@ static void uvt_client_vt_event(void *vt, struct uvt_vt_event *ev, void *data)
uvt_client_waiters_retry(client, client->vt_retry);
}
SHL_EXPORT
int uvt_client_set_vt(struct uvt_client *client, const struct uvt_vt_ops *vt,
void *vt_data)
{