p2p_ios.h:  
	provides defines and macros that are necessary to build P2P RM on IOS.

p2p_impl.h:
	provides defines, macros, and function prototypes that are 
	necessary to implement P2P* libraries, but should not be 
	exposed in the public headers


----


sw/common/lib/p2p

  Contains the source files and Make.common
  that are common to multiple platforms for building

     libp2p.a

  libp2p.a is the library that applications link to use
  P2P core and service APIs

  P2P core apis include apis for configuration, event support,
  virtual network management, communication primitives,
  RPC service, and VoIP.

  For rvl, sc, gba, and ppc this is the shim layer used to
  access the P2P and Voice resource managers via IOS_Ioctlv().
  
  For linux, cygwin, win32 this is the same APIs but they don't
  go through the resource manager shim layer.
  
  Some APIs are only used for server versions of P2P and Voice
  is only used on client platforms.


// Core APIs
//      All have IOS_Ioctlv() interface in p2p.c except:
//
//          Implemented in p2p_s.c
//              P2P_ServerRPC
//
//          Server support provided only on linux and win32
//              P2P_InitServer
//              P2P_Listen
//              P2P_MemberIPAddr
//              P2P_GetMemberDeviceId
//              P2P_GetNewVNRequest
//              P2P_RespondNewVNRequest
//
//          Voice APIs implemented in voice.c
//
//              P2P_VoiceEnable
//              P2P_VoiceDisable
//              P2P_VoiceAddMember
//              P2P_VoiceRemoveMember
//              P2P_VoiceSetEncoder
//              P2P_VoiceGetEncoder
//              P2P_VoiceRead
//              
//
//  Configuration:

        P2P_Init
        P2P_Shutdown

        P2P_Connect
        P2P_Disconnect
        P2P_ConnectStatus

        P2P_AddServerToAdhocDomain
        P2P_ResetAdhocDomain

        P2P_SetTraceOpt             internal use only

//  Event Support

        P2P_GetEvent

//  Virtual Net Management

        P2P_NewVN
        P2P_DeleteVN

        P2P_JoinVN
        P2P_LeaveVN

        P2P_GetJoinRequest
        P2P_AcceptJoinRequest
        P2P_RejectJoinRequest
        P2P_RemoveVNMember

        P2P_GetVNId

        P2P_Self
        P2P_Owner
        P2P_State
        P2P_NumMembers
        P2P_GetMembers
        P2P_MemberState
        P2P_MemberLatency
        P2P_MemberDeviceType

        P2P_GetVNs              internal use only

//  Communication Primitives

        P2P_SendMsg
        P2P_RecvMsg

        P2P_SendReq
        P2P_RecvReq
        P2P_SendResp
        P2P_RecvResp

        P2P_SendRPC
        P2P_RecvRPC                 internal use only

        P2P_Select

        P2P_SendNotificationToApp
        P2P_RecvNotification

//  RPC Server

        P2P_RegisterRPCService
        P2P_UnregisterRPCService
        P2P_ServeRPC                implemented directly in p2p.c

//  Service Support

        P2P_OpenService
        P2P_CloseService
        P2P_ConfigureService

//  P2P Server Support - no RM interface, only linux/win32

        P2P_InitServer
        P2P_Listen
        P2P_MemberIPAddr
        P2P_GetMemberDeviceId
        P2P_GetNewVNRequest
        P2P_RespondNewVNRequest

//  GBA support - no RM interface, implemented in p2p_a.c

        P2P_GBAlloc
        P2P_GBFree



// The following are the Service APIs implemented in a separate module
// with a separate API library (both shim layer and direct).
//
// Service APIs with RM interface in sw/common/lib/p2p/services/p2p_svcs.c

//  User Account

        P2P_Register
        P2P_Login
        P2P_Logout
        P2P_GetLoginType
        P2P_MyUserId
        
//  Buddies

        P2P_GetUserInfo
        P2P_MemberUserId
        P2P_SendNotificationToUser
        
//  Matchmaking

        P2P_RegisterGame
        P2P_UnregisterGame
        P2P_SearchGames
        
//  Game Status

        P2P_UpdateGameStatus
        P2P_GetGameStatus
        P2P_GetGameComments

// Service APIs currently implemented directly in p2p_svcs.c
// that need to be ported to RM

//  User Account
        P2P_SetPassword

//  Buddies

        P2P_GetServerTime
        P2P_GetUserId
        P2P_UpdateUserInfo
        P2P_GetBuddyList
        P2P_InviteUser
        P2P_AcceptUser
        P2P_RejectUser
        P2P_BlockUser
        P2P_UnblockUser
        P2P_RemoveUser
        P2P_UpdateStatus
        P2P_GetBuddyStatus
        P2P_EnableTracking
        P2P_DisableTracking
        
//  Matchmaking

//  Score

        P2P_SubmitScore
        P2P_SubmitScoreObject
        P2P_GetGameScore
        P2P_GetGameScoreObject
        P2P_DeleteGameScore
        P2P_GetRankedScores
        P2P_GetScoreKeys
        
//  Messaging

        P2P_StoreMessage
        P2P_GetMessageList
        P2P_RetrieveMessage
        P2P_DeleteMessage

// Voice APIs with RM interface in ?

        P2P_VoiceEnable
        P2P_VoiceDisable
        P2P_VoiceAddMember
        P2P_VoiceRemoveMember
        P2P_VoiceSetEncoder
        P2P_VoiceGetEncoder
        P2P_VoiceRead
        P2P_VoiceWrite




       
// APIs dropped for sure

        P2P_CloneVN

