Commit 5baa2f2d4be8766f3e9339424699eaed4feaa1fb

Authored by Georg Hopp
1 parent 303fc71e

Inline simple accessor functions

@@ -40,8 +40,23 @@ TR_INTERFACE(TR_CommEndPoint) { @@ -40,8 +40,23 @@ TR_INTERFACE(TR_CommEndPoint) {
40 fptr_TR_cepCompose compose; 40 fptr_TR_cepCompose compose;
41 }; 41 };
42 42
43 -TR_ProtoMessage TR_cepNextMessage(void *, TR_RemoteData *);  
44 -size_t TR_cepCompose(void *, TR_ProtoMessage); 43 +inline
  44 +TR_ProtoMessage
  45 +TR_cepNextMessage(void * _this, TR_RemoteData * data)
  46 +{
  47 + TR_ProtoMessage callret;
  48 + TR_RETCALL(_this, TR_CommEndPoint, nextMessage, callret, data);
  49 + return callret;
  50 +}
  51 +
  52 +inline
  53 +size_t
  54 +TR_cepCompose(void * _this, TR_ProtoMessage message)
  55 +{
  56 + size_t callret;
  57 + TR_RETCALL(_this, TR_CommEndPoint, compose, callret, message);
  58 + return callret;
  59 +}
45 60
46 #endif // __TR_INTERFACE_COMM_END_POINT_H__ 61 #endif // __TR_INTERFACE_COMM_END_POINT_H__
47 62
@@ -30,20 +30,7 @@ @@ -30,20 +30,7 @@
30 30
31 TR_CREATE_INTERFACE(TR_CommEndPoint, 2); 31 TR_CREATE_INTERFACE(TR_CommEndPoint, 2);
32 32
33 -TR_ProtoMessage  
34 -TR_cepNextMessage(void * _this, TR_RemoteData * data)  
35 -{  
36 - TR_ProtoMessage callret;  
37 - TR_RETCALL(_this, TR_CommEndPoint, nextMessage, callret, data);  
38 - return callret;  
39 -}  
40 -  
41 -size_t  
42 -TR_cepCompose(void * _this, TR_ProtoMessage message)  
43 -{  
44 - size_t callret;  
45 - TR_RETCALL(_this, TR_CommEndPoint, compose, callret, message);  
46 - return callret;  
47 -} 33 +extern inline TR_ProtoMessage TR_cepNextMessage(void *, TR_RemoteData *);
  34 +extern inline size_t TR_cepCompose(void *, TR_ProtoMessage);
48 35
49 // vim: set ts=4 sw=4: 36 // vim: set ts=4 sw=4:
Please register or login to post a comment