wayland_client: rename wl_display_create to wl_display_connect

Avoid conflict when using wayland-{server,client} together.
dev
Benjamin Franzke 14 years ago committed by Kristian Høgsberg
parent c1ad1f9c9b
commit 35fd2a8cc6
  1. 2
      clients/screenshot.c
  2. 2
      clients/window.c
  3. 2
      wayland/wayland-client.c
  4. 2
      wayland/wayland-client.h

@ -54,7 +54,7 @@ int main(int argc, char *argv[])
GSource *source;
struct wl_screenshooter *screenshooter;
display = wl_display_create(socket_name, sizeof socket_name);
display = wl_display_connect(socket_name, sizeof socket_name);
if (display == NULL) {
fprintf(stderr, "failed to create display: %m\n");
return -1;

@ -1425,7 +1425,7 @@ display_create(int *argc, char **argv[], const GOptionEntry *option_entries)
if (d == NULL)
return NULL;
d->display = wl_display_create(socket_name, sizeof socket_name);
d->display = wl_display_connect(socket_name, sizeof socket_name);
if (d->display == NULL) {
fprintf(stderr, "failed to create display: %m\n");
return NULL;

@ -329,7 +329,7 @@ static const struct wl_display_listener display_listener = {
};
WL_EXPORT struct wl_display *
wl_display_create(const char *name, size_t name_size)
wl_display_connect(const char *name, size_t name_size)
{
struct wl_display *display;
struct sockaddr_un addr;

@ -37,7 +37,7 @@ typedef int (*wl_display_update_func_t)(uint32_t mask, void *data);
typedef void (*wl_display_sync_func_t)(void *data);
typedef void (*wl_display_frame_func_t)(void *data, uint32_t time);
struct wl_display *wl_display_create(const char *name, size_t name_size);
struct wl_display *wl_display_connect(const char *name, size_t name_size);
void wl_display_destroy(struct wl_display *display);
int wl_display_get_fd(struct wl_display *display,
wl_display_update_func_t update, void *data);

Loading…
Cancel
Save