Changeset 3877:fa0559ec34e0 in roaraudio


Ignore:
Timestamp:
05/21/10 10:57:03 (14 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added error frame support

Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/error.h

    r3874 r3877  
    4141int roar_errno; 
    4242 
    43 /* 
    4443struct roar_message; 
    4544 
    46 int roar_err_buildmsg(struct roar_message * msg); 
    47 */ 
     45/* 
     46  Off Size (Byte) 
     47    | | /- Name 
     48    0 1 Version 
     49    1 1 Cmd 
     50    2 1 RA Errno 
     51    3 1 RA SubErrno 
     52    4 2 Portable Errno 
     53    6 2 Flags 
     54   (8 0 Datalen) 
     55    8 N Data 
     56 */ 
     57 
     58struct roar_error_frame { 
     59 int version; 
     60 int cmd; 
     61 int ra_errno; 
     62 int ra_suberrno; 
     63 int p_errno; 
     64 uint16_t flags; 
     65 size_t datalen; 
     66 void * data; 
     67}; 
     68 
     69int    roar_err_int(struct roar_error_frame * frame); 
     70void * roar_err_buildmsg(struct roar_message * mes, struct roar_error_frame * frame); 
     71int    roar_err_parsemsg(struct roar_message * mes, struct roar_error_frame * frame); 
    4872 
    4973#endif 
  • libroar/Makefile

    r3715 r3877  
    88VIO_BRIDGE=vio_bio.o vio_stdio.o 
    99VIO=$(VIO_META) $(VIO_BRIDGE) vio_cmd.o vio_magic.o vio_pipe.o vio_socket.o vio_winsock.o vio_stack.o vio_jumbo.o vio_proto.o vio_dstr.o vio_tantalos.o vio_rtp.o 
    10 OBJS=libroar.o config.o debug.o basic.o stream.o client.o simple.o auth.o socket.o ctl.o buffer.o meta.o file.o acl.o cdrom.o pinentry.o sshaskpass.o $(VIO) stack.o slp.o nnode.o roardl.o roarx11.o beep.o 
     10OBJS=libroar.o config.o debug.o error.o basic.o stream.o client.o simple.o auth.o socket.o ctl.o buffer.o meta.o file.o acl.o cdrom.o pinentry.o sshaskpass.o $(VIO) stack.o slp.o nnode.o roardl.o roarx11.o beep.o 
    1111 
    1212#DEFINES        = -DDEBUG 
Note: See TracChangeset for help on using the changeset viewer.