/*
* Copyright 1995, 1996 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
# include <stdhdrs.h>
# include <debug.h>
# include <strbuf.h>
# include <strdict.h>
# include <error.h>
# include <vararray.h>
# include "rpc.h"
# include "rpcdispatch.h"
# include "rpcdebug.h"
RpcDispatcher::RpcDispatcher( void )
{
dispatches = new VarArray;
}
RpcDispatcher::~RpcDispatcher( void )
{
delete dispatches;
}
void
RpcDispatcher::Add( const RpcDispatch *dispatch )
{
dispatches->Put( (void *)dispatch );
}
const RpcDispatch *
RpcDispatcher::Find( const char *func )
{
for( int i = dispatches->Count(); i--; )
{
const RpcDispatch *disp = (RpcDispatch *)(dispatches->Get(i));
// Look up function name in dispatch table.
while( disp->opName && strcmp( func, disp->opName ) )
disp++;
if( disp->opName )
return disp;
}
return 0;
}
# |
Change |
User |
Description |
Committed |
|
#1
|
15902 |
Matt Attaway |
A second renaming that I will not obliterate as a badge of shame |
|
|
//guest/perforce_software/p4/2014_1/rpc/rpcdispatch.cc |
#1
|
15901 |
Matt Attaway |
Clean up code to fit modern Workshop naming standards |
|
|
//guest/perforce_software/p4/2014.1/rpc/rpcdispatch.cc |
#1
|
12188 |
Matt Attaway |
Move 'main' p4 into a release specific directory in prep for new releases |
|
|
//guest/perforce_software/p4/rpc/rpcdispatch.cc |
#1
|
9129 |
Matt Attaway |
Initial commit of the 2014.1 p4/p4api source code |
|
|