Initial import of the CDE 2.1.30 sources from the Open Group.

This commit is contained in:
Peter Howkins
2012-03-10 18:21:40 +00:00
commit 83b6996daa
18978 changed files with 3945623 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
/*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
/*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
/*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
/*%% (c) Copyright 1993, 1994 Novell, Inc. */
/*%% $XConsortium: mp_self_procid.h /main/3 1995/10/23 12:01:07 rswiston $ */
/* -*-C++-*-
*
* @(#)mp_self_procid.h 1.1 93/07/09
*
* Copyright 1993 Sun Microsystems, Inc. All rights reserved.
*/
#ifndef _MP_SELF_PROCID_H
#define _MP_SELF_PROCID_H
#include "mp_s_procid.h"
#include "mp_s_pattern_utils.h"
class _Tt_self_procid : public _Tt_s_procid {
public:
_Tt_self_procid();
virtual ~_Tt_self_procid();
virtual Tt_status init();
virtual Tt_status signal_new_message();
static Tt_callback_action handle_Session_Trace(
const _Tt_message_ptr &msg,
void *self_proc
);
static Tt_callback_action observe_Saved(
const _Tt_message_ptr &msg,
void *self_proc
);
//
// Server-side equivalent of tt_pattern_create()
//
static _Tt_s_pattern *s_pattern_create();
private:
Tt_status _process_msg(
const _Tt_message_ptr &msg
);
//
// Server-side equivalent of tt_message_reply(), tt_message_fail()
//
Tt_status _reply(
const _Tt_message_ptr &msg
);
Tt_status _fail(
const _Tt_message_ptr &msg,
int status
);
virtual Tt_status update_message(
const _Tt_message_ptr &msg,
Tt_state new_state
);
//
// Custom callbacks for doing things ttsession likes to do
//
Tt_callback_action _handle_Session_Trace(
const _Tt_message_ptr &msg
);
Tt_callback_action _observe_Saved(
const _Tt_message_ptr &msg
);
};
#endif /* _MP_SELF_PROCID_H */