Back to index

im-sdk  12.3.91
Functions
le_desktop.c File Reference
#include <stdio.h>
#include "le_desktop.h"

Go to the source code of this file.

Functions

LeDesktopContextRecle_desktop_context_new ()
LeResult le_desktop_context_destroy (LeDesktopContextRec *le_desktop_context)
LeResult le_desktop_context_print (LeDesktopContextRec *le_desktop_context)
LeResult le_desktop_context_set_current_session (LeDesktopContextRec *le_desktop_context, iml_session_t *s)
iml_session_tle_desktop_context_get_current_session (LeDesktopContextRec *le_desktop_context)
LeResult le_desktop_context_set_locale (LeDesktopContextRec *le_desktop_context, char *locale)
char * le_desktop_context_get_locale (LeDesktopContextRec *le_desktop_context)
LeResult le_desktop_create (iml_desktop_t *desktop)
LeResult le_desktop_destroy (iml_desktop_t *desktop)

Function Documentation

Definition at line 24 of file le_desktop.c.

{
    if (le_desktop_context == NULL)
       return LE_FAIL;

    if (le_desktop_context->locale)
       free((char *) le_desktop_context->locale);

    free((char *) le_desktop_context);

    return LE_OK;
}

Here is the caller graph for this function:

Definition at line 58 of file le_desktop.c.

{
    if (le_desktop_context == NULL)
       return NULL;

    return (le_desktop_context->current_session);
}

Here is the caller graph for this function:

char* le_desktop_context_get_locale ( LeDesktopContextRec le_desktop_context)

Definition at line 78 of file le_desktop.c.

{
    if (le_desktop_context == NULL)
       return NULL;

    return (le_desktop_context->locale);
}

Definition at line 8 of file le_desktop.c.

{
    LeDesktopContextRec *le_desktop_context = NULL;

    le_desktop_context =
       (LeDesktopContextRec *) calloc(1, sizeof(LeDesktopContextRec));
    if (le_desktop_context == NULL)
       return NULL;

    le_desktop_context->locale = NULL;

    le_desktop_context->current_session = NULL;

    return le_desktop_context;
}

Here is the caller graph for this function:

Definition at line 37 of file le_desktop.c.

{
    DEBUG_printf("le_desktop_context_print ==========\n");

    if (le_desktop_context == NULL)
       return LE_FAIL;

    return LE_OK;
}

Here is the caller graph for this function:

Definition at line 47 of file le_desktop.c.

{
    if (le_desktop_context == NULL)
       return LE_FAIL;

    le_desktop_context->current_session = s;
    return LE_OK;
}

Here is the caller graph for this function:

LeResult le_desktop_context_set_locale ( LeDesktopContextRec le_desktop_context,
char *  locale 
)

Definition at line 67 of file le_desktop.c.

{
    if (le_desktop_context == NULL || locale == NULL)
       return LE_FAIL;

    le_desktop_context->locale = (char *)strdup(locale);
    return LE_OK;
}

Definition at line 90 of file le_desktop.c.

{
    LeDesktopContextRec *le_desktop_context = NULL;

    le_desktop_context = (LeDesktopContextRec *) le_desktop_context_new();
    DEBUG_printf("le_desktop_create ===== %p\n", le_desktop_context);

    le_desktop_context_print(le_desktop_context);

    desktop->specific_data = (void *) le_desktop_context;

    return LE_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 104 of file le_desktop.c.

{
    LeDesktopContextRec *le_desktop_context =
       (LeDesktopContextRec *) desktop->specific_data;

    le_desktop_context_destroy(le_desktop_context);

    desktop->specific_data = NULL;

    return LE_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function: