display.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

G_BEGIN_DECLS void display_set_services (void)
 Initialize diplay update handling.
void display_blank (void)
 Erase display.
void display_busy_animation (gint xpos, gint ypos)
 Show the busy animation.
gchar * display_get_active_window ()
 Get the name of the active window.
void display_cleanup_pid (gint pid)
 Remove PID from display information.
void display_set_ctb_window (gint wid)
void display_set_vcom (gfloat vcom)
void display_set_waveforms (void)
void display_init (void)

Function Documentation

void display_blank ( void   ) 

Erase display.

---------------------------------------------------------------------------

Name : display_blank

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

Definition at line 412 of file sysd/src/display.c.

References delta_erase(), g_timeout, and LOGPRINTF.

00413 {
00414     LOGPRINTF("entry");
00415 
00416     // cancel scheduled dislay update 
00417     if (g_timeout.tv_sec > 0 || g_timeout.tv_usec > 0) 
00418     { 
00419         bzero(&DisplayCommand, sizeof(DMCommand));
00420         g_timeout.tv_sec = -1;
00421         g_timeout.tv_usec = -1;
00422     }
00423 
00424     // clear display
00425     delta_erase(15);   
00426 }

Here is the call graph for this function:

void display_busy_animation ( gint  xpos,
gint  ypos 
)

Show the busy animation.

---------------------------------------------------------------------------

Name : display_busy_animation

Parameters:
xpos 
ypos 
Returns:
--

--------------------------------------------------------------------------

Definition at line 429 of file sysd/src/display.c.

References BUSY_ANIMATION_SPEED, delta_busy(), and LOGPRINTF.

00430 {
00431     LOGPRINTF("entry: x %d, y %d", xpos, ypos);
00432     delta_busy(xpos, ypos, BUSY_ANIMATION_SPEED);
00433 }

Here is the call graph for this function:

void display_cleanup_pid ( gint  pid  ) 

Remove PID from display information.

---------------------------------------------------------------------------

Name : display_cleanup_pid

Parameters:
gint Process ID
Returns:
--

--------------------------------------------------------------------------

Definition at line 443 of file sysd/src/display.c.

References ignore_pid_remove(), and LOGPRINTF.

Referenced by on_process_exit().

00444 {
00445     LOGPRINTF("entry");
00446     ignore_pid_remove(pid);    
00447 }

Here is the call graph for this function:

Here is the caller graph for this function:

gchar* display_get_active_window (  ) 

Get the name of the active window.

---------------------------------------------------------------------------

Name : display_get_active_window

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

Definition at line 436 of file sysd/src/display.c.

References LOGPRINTF, and WMInfo::name.

Referenced by process_activate_ctb().

00437 {
00438     LOGPRINTF("entry");
00439     return WindowInfo.name;
00440 }

Here is the caller graph for this function:

void display_init ( void   ) 

Definition at line 79 of file display_utils.c.

References delta_init(), dm_socket, init_socket(), and LOGPRINTF.

00080 {
00081     if (dm_socket == -1)
00082     {
00083         init_socket();
00084     }
00085 }

Here is the call graph for this function:

void display_set_ctb_window ( gint  wid  ) 

Definition at line 1190 of file sysd/src/display.c.

Referenced by process_startup_complete().

01191 {
01192     g_ctb_window = wid;
01193 }

Here is the caller graph for this function:

G_BEGIN_DECLS void display_set_services ( void   ) 

Initialize diplay update handling.

File Name : display.h

Description: The Display update functions Copyright (C) 2008 iRex Technologies B.V. All rights reserved.---------------------------------------------------------------------------

Name : display_set_services

Parameters:
-- 
Returns:
--

--------------------------------------------------------------------------

Definition at line 376 of file sysd/src/display.c.

References ERRORPRINTF, gtk_messages(), handle_wm_socket(), LOGPRINTF, and WMPORT.

Referenced by main().

00377 {
00378     LOGPRINTF("entry");
00379     
00380     if (pthread_create(&dm_thread, NULL, gtk_messages, NULL) != 0)
00381     {
00382         ERRORPRINTF("Could not create thread");
00383         return;
00384     }
00385 
00386     // add GIOChannel for WM socket
00387     //
00388     int sockfd = socket(PF_INET, SOCK_DGRAM, 0);
00389     if (sockfd == -1) {
00390         perror("Error invoking socket");
00391         return;
00392     }
00393     bzero(&WindowInfo, sizeof(WMInfo));
00394     struct sockaddr_in server_addr;
00395     bzero(&server_addr, sizeof(struct sockaddr_in));
00396     server_addr.sin_family = AF_INET;
00397     server_addr.sin_port = htons(WMPORT);
00398     server_addr.sin_addr.s_addr = htonl(INADDR_ANY);
00399     memset(server_addr.sin_zero, 0, sizeof(server_addr.sin_zero));
00400 
00401     int error = bind(sockfd, &server_addr, sizeof(server_addr));
00402     if (error) {
00403         perror("Error invoking bind");
00404         return;
00405     }
00406     GIOChannel* channel = g_io_channel_unix_new(sockfd);
00407     g_io_channel_set_encoding(channel, NULL, NULL);
00408     g_io_add_watch(channel, G_IO_IN|G_IO_PRI|G_IO_ERR, handle_wm_socket, NULL);
00409 }

Here is the call graph for this function:

Here is the caller graph for this function:

void display_set_vcom ( gfloat  vcom  ) 

Definition at line 450 of file sysd/src/display.c.

References delta_vcom_set(), and LOGPRINTF.

Referenced by display_update().

00451 {
00452     LOGPRINTF("entry [%f]", vcom);
00453     delta_vcom_set(vcom);
00454 }

Here is the call graph for this function:

Here is the caller graph for this function:

void display_set_waveforms ( void   ) 

Definition at line 457 of file sysd/src/display.c.

References delta_uploadwave(), and LOGPRINTF.

00458 {
00459     LOGPRINTF("entry");
00460     delta_uploadwave("/var/tmp/waves", 0);
00461 }

Here is the call graph for this function:

Generated by  doxygen 1.6.2-20100208