add qpush qpop qslice in api/cpp