# dcop Library API Documentation

Overview | Class Hierarchy | Classes | Classes (annotated) | Members | Source Files

# dcopc.h

    00001 /*
    00002  * C interface to DCOP
    00003  *
    00004  * (C) 2000 Rik Hemsley <rik@kde.org>
    00005  * (C) 2000 Simon Hausmann <hausmann@kde.org>
    00006  */
    00007
    00008 #ifndef __dcopc_h__
    00009 #define __dcopc_h__
    00010
    00011 #ifdef __cplusplus
    00012 extern "C" {
    00013 #endif
    00014
    00015 #ifndef Bool
    00016 #define Bool int
    00017 #define True 1
    00018 #define False 0
    00019 #endif
    00020
    00021 typedef void (*dcop_callback_t)(
    00022   const char * object_id,
    00023   const char * function,
    00024   const char * data,
    00025   unsigned int data_length
    00026 );
    00027
    00033 Bool dcop_attach(void);
    00034
    00048 char * dcop_register(const char * app_name, Bool add_pid);
    00049
    00054 Bool dcop_detach(void);
    00055
    00064 Bool dcop_register_callback(const char * object_id, dcop_callback_t callback);
    00065
    00081 Bool dcop_send_signal(
    00082   const char * receiving_app,
    00083   const char * object,
    00084   const char * function,
    00085   char * data,
    00086   int data_length
    00087 );
    00088
    00103 Bool dcop_call(
    00104   const char * app_name,
    00105   const char * remote_app_name,
    00106   const char * remote_object_id,
    00107   const char * remote_function,
    00108   const char * data,
    00109   int data_length,
    00110   char ** reply_type,
    00111   char ** reply_data,
    00112   int * reply_data_length
    00113 );
    00114
    00115 #ifdef __cplusplus
    00116 }
    00117 #endif
    00118
    00119 #endif /* __dcopc_h__ */

This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Wed Jan 28 12:42:41 2004 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001